共用方式為


CMFCMenuButton::m_nMenuResult

An integer that indicates which item the user selects from the pop-up menu.

int m_nMenuResult;

Remarks

The value of this member variable is zero if the user cancels the menu without making a selection or if an error occurs.

Requirements

Header: afxmenubutton.h

See Also

Reference

CMFCMenuButton Class

Hierarchy Chart