Udostępnij za pośrednictwem


CMFCToolBarMenuButton::OnClickMenuItem

Called by the framework when the user selects an item in the drop-down menu.

virtual BOOL OnClickMenuItem();

Return Value

FALSE if the framework should continue the default menu item processing; otherwise TRUE. The default implementation always returns FALSE.

Remarks

When the user clicks a menu item, the framework executes a command that is associated with that item.

To customize the menu item processing, override OnClickMenuItem in a class derived from CMFCToolBarMenuButton class. You must also override CFrameWndEx::OnShowPopupMenu and replace the menu buttons that require special processing with instances of the derived class.

Requirements

Header: afxtoolbarmenubutton.h

See Also

Reference

CMFCToolBarMenuButton Class

Hierarchy Chart