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

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.

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