Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called by the framework when a menu is displayed and the user presses a key that does not correspond to a command.
afx_msg LRESULT OnMenuChar(
UINT nChar,
UINT nFlags,
CMenu* pMenu
);
Parameters
[in] nChar
Character code of the pressed key.[in] nFlags
Contains the MF_POPUP flag if the menu displayed is a submenu; contains the MF_SYSMENU flag if the menu displayed is a control menu.[in] pMenu
Pointer to a menu.
Return Value
The high-order word must be one of the following values.
0
The framework should ignore the keystroke.1
The framework should close the menu.2
The framework should select one of the items displayed in the menu. The low-order word contains the ID of the command to select.
Requirements
Header: afxframewndex.h