BCGSuite for MFC
int CBCGPMenuButton::m_nMenuResult

A menu-item identifier.

The m_nMenuResult contains the popup menu-item identifier of the item that the user selected. If the user cancels the menu without making a selection, or if an error occurs, then the value is zero.