BCGControlBar Pro for MFC
int CBCGPToolbarCustomize::RemoveButton ( LPCTSTR  lpszCategory,
UINT  uiCmdId 
)

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

Returns
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.

Parameters
lpszCategorySpecifies the name of the category to remove the button from.
uiCmdIdSpecifies the button's command ID.