BCGControlBar Pro for MFC
BOOL CBCGPRibbonBar::RemoveCategory ( int  nIndex)

Removes a category located at the specified index,

Returns
Nonzero if a category was removed successfully; otherwise FALSE. The function fails if specified index is out of range.

Use this function to remove a category located at the specified index.

Parameters
nIndexSpecifies zero-based index of category to remove.