BCGControlBar Pro for MFC
int CBCGPRibbonBar::AddCaptionCustomButton ( CBCGPRibbonCaptionCustomButton pButton)

Adds a custom caption button.

Parameters
pButtonThe pointer to the custom caption button.
Returns
Index of the caption button.