Dela via


CMFCPopupMenu::SetSendMenuSelectMsg

Sets a flag that controls whether the pop-up menu notifies its parent frame when the user selects a command.

static void SetSendMenuSelectMsg(
   BOOL bSet = TRUE
);

Parameters

  • [in] bSet
    TRUE if the pop-up menu notifies its parent frame, FALSE otherwise.

Remarks

This is a global option for all the pop-up menus in an application. If it is enabled, the pop-up menus will send a WM_MENUSELECT message to the parent frame when the user selects a command.

Requirements

Header: afxpopupmenu.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCPopupMenu Class