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 |
|
a a
|
Jun 9, 2006 - 2:27 AM
|
How do you programmatically close a control bar?
I’m currently using CMDIFrameWnd::ShowControlBar. It works in Debug mode, but in Release mode there is an access error. Do you know why?
Thanks.
|
|
Technical Support
|
Jun 9, 2006 - 7:48 AM
|
Yes, the CFrameWnd::ShowControlBar() method is the single way to show/hide both Prof-UIS and MFC control bars. But if you are using resizable control bars which are enabled for auto-hide, you should use the CFrameWnd::ShowControlBar() method only if the CExtControlBar::AutoHideModeGet() method returns false . To hide a auto-hidden control bar, please use the CExtControlBar::AutoHideModeSet() method.
|
|
a a
|
Jun 11, 2006 - 10:26 PM
|
Hi.
I’m using now CFrameWnd::ShowControlBar() only when CExtControlBar::AutoHideModeGet() returns false. But I still get the same errors, in release mode the program crashes inside ShowControlBar. Do you know why?
Thanks.
|
|
Technical Support
|
Jun 12, 2006 - 12:31 PM
|
We guess this error depends on some things specific to your project. We can review your project or test application which shows the error and find out what’s wrong.
|
|
a a
|
Jun 13, 2006 - 8:05 AM
|
Sorry, I solved this problem by correcting the code for removing Control Bars (I was deleting them with delete).
|
|