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

Removes the custom caption button specified by index.

Parameters
nIndexThe index of the caption control to be removed.