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 » CExtControlBar Auto-Hide Mode Collapse All
Subject Author Date
William Keadey Mar 10, 2005 - 5:53 AM

When my control bar is in auto-hide mode one of my controls in the control bar is set to the size of the window.  Each time the control bar is shown a different control is resized.


I would like to handle all resizing myself, but I noticed that the OnSize messages stop when the control bar is in auto-hide

Technical Support Mar 10, 2005 - 11:23 AM

As we said before, the resizable control bar is designed to keep only one child window inside. When it is in the auto-hidden mode, it is really in the classic MFC control bar’s hidden mode, but allocates one tab item in the grouped auto-hide tab area. The window that is sliding from the groupped auto-hide tabs is called the auto-hide slider window. The child window of the resizable control bar is temporarily moved into this auto-hide slider window with SetParent() Win32 API. That is why you stopped receiving sizing messages. Please pay your attention to the child window of the resizable control bar only and trust its size. You can create any windows inside it and size them as you need.