BCGControlBar Pro for MFC
virtual BOOL CBCGPToolBar::SetButtons ( const UINT *  lpIDArray,
int  nIDCount,
BOOL  bRemapImages = TRUE 
)
virtual

Removes existing buttons from a toolbar and inserts a collection of new buttons.

Returns
Nonzero if successful; otherwise 0.

This member function can be used to remove existing buttons (if any) from a toolbar and insert a collection of new buttons, specified by the lpIDArray array of button's command IDs.

The SetButtons function automatically reinserts the "Customize" button (see EnableCustomizeButton()) and sends BCGM_RESETTOOLBAR message to the toolbar's parent window.

Parameters
lpIDArrayA pointer to array of command IDs of the buttons to insert.
nIDCountA pointer to array of command IDs of the buttons to insert.
bRemapImagesSpecifies whether to remap the images of the inserted buttons.