CWnd::OnMenuChar

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.

Syntax

afx_msg LRESULT OnMenuChar ( UINT nChar, UINT nFlags, CMenu* pMenu );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

There is no system menu in Windows CE, so the only value the CWnd::OnMenuChar supports in the nFlags parameter is MF_POPUP.

See Also

CWnd Overview, CWnd Member Functions, Window Class Categories