CToolBar::SetButtonText
The document is archived and information here might be outdated

CToolBar::SetButtonText

Call this function to set the text on a button.

BOOL SetButtonText(
   int nIndex,
   LPCTSTR lpszText 
);

Parameters

nIndex
Index of the button whose text is to be set.
lpszText
Points to the text to be set on a button.

Return Value

Nonzero if successful; otherwise 0.

Example

See the example for CToolBar::GetToolBarCtrl.

See Also

CToolBar Overview | Class Members | Hierarchy Chart | CToolBar::GetButtonText

Show:
© 2016 Microsoft