void CBCGPToolBar::SetToolBarBtnText | ( | UINT | nBtnIndex, |
LPCTSTR | szText = NULL , |
||
BOOL | bShowText = TRUE , |
||
BOOL | bShowImage = TRUE |
||
) |
Sets a new text label to the specified toolbar button, and specifies whether the toolbar button's text and image should be displayed or not.
The SetToolBarBtnText function sets a new text label to a toolbar button. Along with this, it allows to specify whether the button displays its text and image.
By default, toolbar buttons don't display text labels.
nBtnIndex | Specifies the button's index in the toolbar's list of buttons. |
szText | Specifies the text to set. |
bShowText | Specifies whether to display the button's text or not. |
bShowImage | Specifies whether to display the button's index or not. |