void CBCGPToolBar::SetButtonInfo | ( | int | nIndex, |
UINT | nID, | ||
UINT | nStyle, | ||
int | iImage | ||
) |
Sets properties for a toolbar button.
Use this function to set properties for a toolbar button. If a button's index is invalid or there is no button at the specified by nIndex position, the debug version of the library asserts.
nIndex | Specifies the index of a button whose properties are set. |
nID | Specifies the new button's command ID. |
nStyle | Specifies the new button's style. |
iImage | Specifies the new button's image (index in the collection of toolbar images). |