This member function is called by the framework when the user presses a menu mnemonic character that does not match any of the predefined mnemonics in the current menu. It is sent to the CWnd that owns the menu. It is also called when the user presses alt and any other key, even if the key does not correspond to a mnemonic character.
afx_msg LRESULT OnMenuChar ( UINT nChar, UINT nFlags, CMenu* pMenu );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
There is no system menu in Windows CE, so the only value the CWnd::OnMenuChar supports in the nFlags parameter is MF_POPUP.
CWnd Overview, CWnd Member Functions, Window Class Categories