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 Tech Support » double click on a floating CExtControlBar Collapse All
Subject Author Date
Pierre MEDART May 30, 2007 - 7:49 AM

Hi

when I double click on a docked toolbar, it gets floating.

How can I get the floating toolbar docked at its previous location. If it is not possible, how can I prevent the docked toolbar to get floating ?

Technical Support May 30, 2007 - 12:29 PM

The Prof-UIS control bars are not the controls written from scratch. The CExtControlBar class greatly extends the functionality of the MFC’s CControlBar class. The latter can restore the docked position only if the control bar is docked to a frame side or to an already docked toolbar. You can dock Prof-UIS control bars in a nested way. So this limitation of Prof-UIS control bars is not resolved yet.

You can create a CExtControlBar-derived class and override its CExtControlBar::ToggleDocking() virtual method. Leave its body empty to prevent double-click based redocking .