Freigeben über


CMFCDropDownToolbarButton::OnCustomizeMenu

Modifies the provided menu when the application displays a shortcut menu on the parent toolbar.

virtual BOOL OnCustomizeMenu(
   CMenu* pMenu
);

Parameters

  • [in] pMenu
    The menu to customize.

Return Value

This method returns TRUE.

Remarks

This method extends the base class implementation (CMFCToolBarButton::OnCustomizeMenu) by disabling the following menu items:

  • Copy Button Image

  • Button Appearance

  • Image

  • Text

  • Image and Text

Override this method to modify the shortcut menu that the framework displays in customization mode.

Requirements

Header: afxdropdowntoolbar.h

See Also

Reference

CMFCDropDownToolbarButton Class

Hierarchy Chart

CMFCToolBarButton::OnCustomizeMenu