BCGControlBar Pro for MFC
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.

Parameters
nIndexSpecifies the index of a button whose properties are set.
nIDSpecifies the new button's command ID.
nStyleSpecifies the new button's style.
iImageSpecifies the new button's image (index in the collection of toolbar images).