This documentation is archived and is not being maintained.


Sets the text label of a toolbar button.

BOOL SetButtonText(
   int nIndex,
   LPCTSTR lpszText 

[in] nIndex

The index of the toolbar button.

[in] lpszText

The text label of the toolbar button. Must be non-NULL.

TRUE if the method succeeds; otherwise FALSE.

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

Header: afxtoolbar.h