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 » Problem with keyboard shortcuts Collapse All
Subject Author Date
Mel Sampat Aug 7, 2005 - 3:55 PM

I am creating an application with an Outlook 2003 UI based on your PageNavigator sample. On the left pane (inside the Outlook nagivator control), I have a class derived from CExtResizableDialog. This contains a CTreeCtrl  (just like your sample).


The problem is that when the CTreeCtrl has focus, none of the keyboard shortcuts for the main menu work. For example, if I press Alt-F, the menu won’t open. If I set focus to any other view, the shortcuts work fine. Even your sample seems to be working fine, so I must be missing some simple message handler. Can you help?


I don’t know if it matters, but in my CMainFrame, I am handling PreTranslateMessage as follows:


BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
{
 if (m_wndMenuBar.TranslateMainFrameMessage(pMsg))
  return TRUE;


 return CFrameWnd::PreTranslateMessage(pMsg);
}


Thanks,


-Mel

Technical Support Aug 8, 2005 - 6:24 AM

Could you send us your project so we can fix the problem?