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.
Subject |
Author |
Date |
|
Scott Moore
|
Apr 9, 2008 - 3:23 PM
|
I have a dynamic control bar docked to the right side of my tab container and auto-hidden (__EDBS_AUTO_HIDDEN). It slides out when the user mouses over it, but is it possible to make it slide out programatically?
|
|
Technical Support
|
Apr 10, 2008 - 10:50 AM
|
You should send a WM_COMMAND message to the main frame window, with control bar’s dialog control identifier specified in the WPARAM parameter: CExtControlBar * pBar = . . .
CFrameWnd * pMainFrame = . . . // you know it or you can get it as pBar’s property: pMainFrame = pBar->m_pDockSite;
pMainFrame->SendMessage( WM_COMMAND, WPARAM(pBar->GetDlgCtrlID()) ); The bar’s dialog control identifier is equal to the command identifier of the menu item which is used for activation and displaying of the bar. The code above simply emulates the invocation of the menu item which activates and shows the bar. If you want to invoke this code only when the bar is auto-hidden, then you can use the CExtControlBar::AutoHideModeGet() method for checking whether the bar is auto-hidden.
|
|