Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » How to remove auto-hide button of CExtControlBar. Collapse All
Subject Author Date
Seung Cheol Lee Apr 28, 2009 - 1:19 AM

I don’t want to use the auto-hide of CExtControlBar.


So I’d like to remove the auto-hide button of CExtControBar.


How to do.

Technical Support Apr 28, 2009 - 12:18 PM

If you want to disable the auto-hide feature for all control bars in the main frame window, you can do that by commenting out the invocation of CExtControlBar::FrameInjectAutoHideAreas() that is called during main frame initialization.
If you want just to remove the auto-hide button from caption(s) of bar(s), you should create and use a CExtControlBar-derived class which implements the CExtControlBar::OnNcAreaButtonsReinitialize() method. Your method should be similar to the original one so you can simply copy code from the original method and just remove the NcButtons_Add( new CExtBarNcAreaButtonAutoHide(this) ); line of code.