BCGControlBar Pro for MFC
virtual int CBCGPToolBar::InsertButton ( const CBCGPToolbarButton button,
INT_PTR  iInsertAt = -1 
)
virtual

Inserts a button into list of toolbar buttons.

Returns
Position at which the button was inserted. It is -1 if some error occurs.

Call this function to insert a toolbar button at the specified by iInsertAt position. If iInsertAt is -1, the button is added at the end of the list of toolbar buttons.

Parameters
buttonSpecifies the button to insert.
iInsertAtSpecifies the position to insert the button at.