BCGControlBar Pro for MFC
BOOL CBCGPOutlookBarPane::AddButton ( LPCTSTR  lpszLabel,
UINT  iIdCommand,
int  iIconIndex,
int  iInsertAt = -1 
)

Inserts a button into an outlook bar's page. Should work in conjunction with the LoadIcons() method.

Parameters
lpszLabelSpecifies the button's text
iIconIndexZero-based index of the icon.
iIdCommandSpecifies the button control's ID.
iInsertAtSpecifies the zero-based index on the outlook bar's page at which to insert the button.

Call this function to insert a new button into an outlook bar's page. The button's images should be loaded before using LoadIcons() method. If the index specified by iInsertAt is -1, the button is added at the end of the page.

Returns
Nonzero if a button was added successfully; otherwise 0.