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 » How to hide floating ControlBars when frame window is minimized or hidden? Collapse All
Subject Author Date
Dmitriy Dashevskiy Oct 22, 2005 - 8:53 AM

subj

Technical Support Oct 24, 2005 - 11:06 AM

Please handle the WM_ACTIVATE standard windows message in the main frame window. When the frame becomes inactive, save the array of the dialog control identifiers corresponding to the floating control bars and hide these control bars. When the frame becomes active, show all the saved control bars. The CFrameWnd::m_listControlBars property is the CPtrList, which stores pointers to all the CControlBar objects in the frame window. You need to traverse this list and downcast each of bars to CExtControlBar type. Invoke the GetParentFrame() for each of the CExtControlBar windows. If the parent frame is of the CMiniFrameWnd class, then the bar is floating. To show/hide the bar, use the CFrameWnd::ShowControlBar() method.


Dmitriy Dashevskiy Oct 25, 2005 - 12:04 PM

Thank you or info. As you’ve said in another thread it is possible to disable floating completely. It will be even more appropriate for our application.