BCGControlBar Pro for MFC
BOOL CBCGPRibbonPanel::Remove ( int  nIndex,
BOOL  bDelete = TRUE 
)

Removes and optionally deletes an element located at the specified index.

Returns
Nonzero if the element has been deleted successfully; otherwise FALSE. The function fails if there is no element does exist at the specified position.

Call this function to remove an element from ribbon panel.

Parameters
nIndexSpecifies the zero-based index of element to be removed.
bDeleteIf TRUE, the element will be deleted.