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 General Discussion » Eject / Show AutoHidden CExtControlBar Collapse All
Subject Author Date
Eric Semle Jan 29, 2008 - 12:18 PM

I’m working on an MDI project that has many CExtControlBars’ as containers for CExtResizeableDialogs’. One of the dialogs is a text messaging interface that is docked and hidden (i.e. tabbed). When a message is received I would like the dialog to expand/eject out for a specified amount of time and then hide again. Basically I want the interaction to be like when a user hovers their mouse over the tab. The only problem is I can’t figure out how to get the dialog to show.

The AutoHideModeSet is not what I’m looking for. Using that method de-tabs the dialog.

Are there any "simple" methods to get the dialogs to pop out?

Eric Semle Jan 31, 2008 - 7:56 AM

That didn’t end up working for me. However, after reading your answer I did a search with the key phrase "activate" and was able to find the answer on your website. Thanks for the help!



CExtControlBar::DoFrameBarCheckCmd(pDockSite, nReisizableBarDlgCtrlID, false);


http://www.prof-uis.com/ArticleRead.aspx?AID=142

Technical Support Jan 31, 2008 - 4:30 AM

The following code activates a control bar in any state:

CFrameWnd * pMainFrame = . . .
CExtControlBar * pBar = . . .
      pMainFrame->SendMessage( WM_COMMAND, WPARAM(pBar->GetDlgCtrlID()) );