Professional UI Solutions
Site Map   /  Register


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 Tech Support » how fix/pin the tool bars selectively Collapse All
Subject Author Date
howard liu Sep 8, 2008 - 10:25 AM


CExtControlBar::g_bLockAllBars = true; locks all control bars in my application. How do i pin or fix individual control bars or make selectively some of the tool bars (or controls bars) non dockable and some of them dockable,

Some times when i make the non-dockable by CExtControlBar::g_bLockAllBars = true; even the title bar in the dialog become non dockable in the sense the cross button (close button on top right corner ) also vanishes to make the dialog non-dockable.





Technical Support Sep 9, 2008 - 12:09 PM

You should create and use a custom CExtControlBar-derived class which implements the CExtControlBar::_DraggingIsEnabled() virtual method. This virtual method should return a flag which indicates whether toolbar is not locked.