BCGControlBar Pro for MFC
int CBCGPRibbonBar::AddCaptionButton ( CBCGPBaseRibbonElement pButton,
BOOL  bAddToEnd = TRUE 
)

Adds any ribbon control to the caption.

Parameters
pButtonThe pointer to the ribbon control.
bAddToEndSpecifies whether the control should be added to the end.
Returns
Index of the control on the caption.