Udostępnij za pośrednictwem


CMFCToolBar::SetButtonText

Sets the text label of a toolbar button.

BOOL SetButtonText(
   int nIndex,
   LPCTSTR lpszText 
);

Parameters

  • [in] nIndex
    The index of the toolbar button.

  • [in] lpszText
    The text label of the toolbar button. Must be non-NULL.

Return Value

TRUE if the method succeeds; otherwise FALSE.

Remarks

This method returns FALSE if the provided index does not refer to a valid toolbar button.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart