CToolBar::SetButtonInfo
voidSetButtonInfo(intnIndex**,UINTnID,UINTnStyle,intiImage);**
Parameters
nIndex
Index of the button or separator whose information is to be set.
nID
The value to which the button’s command ID is set.
nStyle
The new button style. The following button styles are supported:
TBBS_BUTTON Standard pushbutton (default)
TBBS_SEPARATOR Separator
TBBS_CHECKBOX Auto check-box button
TBBS_GROUP Marks the start of a group of buttons
TBBS_CHECKGROUP Marks the start of a group of check-box buttons
iImage
New index for the button’s image within the bitmap.
Remarks
Call this member function to set the button's command ID, style, and image number. For separators, which have the style TBBS_SEPARATOR, this function sets the separator's width in pixels to the value stored in iImage.
For information on bitmap images and buttons, see the CToolBar Overview and CToolBar::LoadBitmap.
CToolBar Overview | Class Members | Hierarchy Chart
See Also CToolBar::GetButtonInfo