BCGControlBar Pro for MFC
virtual void CBCGPToolBar::SetButtonStyle ( int  nIndex,
UINT  nStyle 
)
virtual

Sets a new style for a toolbar button.

Call this function to set a new style for a toolbar button. The SetButtonStyle function automatically removes the TBBS_PRESSED style if nStyle is TBBS_DISABLED (disabled button can't be pressed).

Parameters
nIndexAn index of a toolbar button.
nStyleA new style.