BCGControlBar Pro for MFC
BOOL CBCGPToolBoxPage::DeleteButton ( int  nItem)

Deletes a button.

Returns
Non-zero if the button was deleted successfully; 0 if a button with specified index is not found in the toolbox page.

Use this function to remove a button from toolbox by index.

Parameters
nItemSpecifies zero-based index of a button to delete.