This method 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.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
afx_msg LRESULT OnMenuChar ( UINT nChar, UINT nFlags, CMenu* pMenu );
There is no system menu in Windows CE, so the only value the CWnd::OnMenuChar supports in the nFlags parameter is MF_POPUP.