BCGControlBar Pro for MFC
int CBCGPRibbonBar::AddCaptionCustomButton ( CBCGPRibbonCaptionCustomButton pButton,
BOOL  bAddToEnd = TRUE 
)

Adds a custom caption button.

Parameters
pButtonThe pointer to the custom caption button.
bAddToEndSpecifies whether the button should be added to the end.
Returns
Index of the caption button.