BCGControlBar Pro for MFC
int CBCGPToolbarCustomize::RemoveButton ( UINT  uiCategoryId,
UINT  uiCmdId 

Removes a toolbar button from the list box of commands on the "Commands" page.

The zero-based index of the removed button; it is -1 if the specified category was not found. The returned value is 0 if uiCategoryId is -1 (e.g. forces to remove a button from all categories).

Call this member function to remove the specified button from the specified category.

You can use the first version of the RemoveButton function if you need to remove a button from all categories, just set uiCategoryId to -1.

uiCategoryIdSpecifies the category ID to remove the button from.
uiCmdIdSpecifies the button's command ID.