Delen via


CMFCMenuBar::OnSetDefaultButtonText

The framework calls this method when the user changes the text of an item on the menu bar.

virtual BOOL OnSetDefaultButtonText(
   CMFCToolBarButton* pButton
);

Parameters

  • [in] pButton
    A pointer to the CMFCToolBarButton object that the user wants to customize.

Return Value

TRUE if the framework applies the user changes to the menu bar; otherwise FALSE.

Remarks

The default implementation for this method changes the text of the button to the text that the user provides.

Requirements

Header: afxmenubar.h

See Also

Reference

CMFCMenuBar Class

Hierarchy Chart