BCGControlBar Pro for MFC
BOOL CBCGPDialog::AddCustomCaptionButton ( UINT  nCmdID,
HICON  hIcon,
BOOL  bAutoDestroyIcon = TRUE 

Adds a custom caption button.

Call this method to add a simple custom button to the caption bar. Please note, that custom caption appears only in the themed (owner-draw) captions.

nCmdIDCustom button command ID.
hIconCustom button icon.
bAutoDestroyIconSpecifies whether an icon associated with the button will be automatically destroyed.
Returns True if the custom button was successfully added; FALSE - otherwise.