Share via


CMFCCustomizeButton::InvokeCommand

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Posts the WM_COMMAND message to the owner of the parent toolbar of the Customize button.

virtual BOOL InvokeCommand(
   CMFCPopupMenuBar* pMenuBar,
   const CMFCToolBarButton* pButton
);

Parameters

Parameter

Description

[in] pMenuBar

The pop-up menu bar that contains the selected toolbar button.

[in] pButton

The selected toolbar button.

Return Value

TRUE if the owner of the parent toolbar of the customize button received the command message; FALSE otherwise.

Remarks

This method is called by the framework to allow customize buttons to respond to command messages.

Requirements

Header: afxcustomizebutton.h

See Also

Reference

CMFCCustomizeButton Class

Other Resources

MFC Hierarchy Chart