Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Debabrata Mukherjee
|
Sep 6, 2007 - 7:16 AM
|
Hi, We have a Dockable CExtToolControlbar in our application. We need to hide this from our application depending on some conditions. When the toolbar is present at the toolbar window with the other toolbars; we are able to hide it without any problem. But when the toolbar is in floating condition at the client area of the main application,only the button inside the toolbar is hidden and if at this point the toolbar is dragged towards the toolbar window it gives debug assertion error. Now our question is 1. Is it possible to hide the toolbar window rather than the button inside the toolbar? 2. Although the assertion error does not crash the application but what is the solution to remove that?
|
|
Technical Support
|
Sep 7, 2007 - 6:49 AM
|
There is a CFrameWnd::ShowControlBar() method that should be used for hiding and showing toolbars. So, you should never use CWnd::ShowWindow() nor CWnd::SetWindowPos() for changing the visibility of control bars. Of course, we expect you should have no assertion failures in this case. Please check this and if the problem persists, let us know.
|
|