Professional UI Solutions
Site Map   /  Register


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 » Problem with CExtGridWnd and menu shortcuts Collapse All
Subject Author Date
Thomas Wagner Jun 9, 2008 - 3:40 AM

Dear support team

I have a problem with the CExtGridWnd. Everytime the Grid gets the focus all menu shortcuts do not work anymore.

Do I have to tell the GridWnd-Class which menu-shortcuts (Alt D, ...) are used?

Best regards


Thomas Wagner Jun 10, 2008 - 3:29 AM

Thank you very much, I didnt call TranslateMainFrameMessage, now everything works fine!

Technical Support Jun 9, 2008 - 8:51 AM

The grid control does not affect menus and toolbars (the menu bar is kind of toolbar). You need only one thing to make menu shortcuts working properly: invoke m_wndMenuBar.TranslateMainFrameMessage( ... ) code from the CMainFrame::PreTranslateMessage() virtual method. The menu line shortcut behavior is fully based on MFC message pre-translation feature. If you didn’t forget to invoke the m_wndMenuBar.TranslateMainFrameMessage( ... ) code, there must be something else in your project that isn’t compatible with the menu bar’s message pre-translation.