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 |
|
Emmanuel Verguet
|
Oct 5, 2007 - 7:00 AM
|
I have a problem with our application, which has a state in full screen mode. If user press the alt key (for alt tab for example), the menu appears on the top of the screen. The FullScreenState sample has the same problem. How can I prevent this ?
Thanks.
|
|
Technical Support
|
Oct 5, 2007 - 2:10 PM
|
The menu bar window does not know if its parent frame window is in the full screen mode or not. It acts exactly the same in both modes. If you want to make the menu bar ignoring the ALT key in the full screen mode, then you should use the following menu bar class: class CYourMenuBar : public CExtMenuControlBar
{
public:
virtual BOOL TranslateMainFrameMessage(MSG* pMsg)
{
if( CExtPopupMenuWnd::g_bFullScreenMode
&& WM_KEYFIRST <= pMsg->message && pMsg->message <= WM_KEYLAST
&& pMsg->wParam == VK_MENU
)
return FALSE;
return CExtMenuControlBar::TranslateMainFrameMessage(MSG* pMsg);
}
}; Please note menu commands in menus displayed by the menu bar’s buttons are typically contain all the commands available in application. So, it’s recommended to make the menu bar available any time.
|
|