BCGControlBar Pro for MFC
void CBCGPCaptionBar::SetButton ( LPCTSTR  lpszLabel,
UINT  uiCmdUI,
BarElementAlignment  btnAlignmnet = ALIGN_LEFT,
BOOL  bHasDropDownArrow = TRUE 
)

Sets the button on a caption bar.

Call this function to set the button on a caption bar. Any caption bar can contain only one button.

Use RemoveButton() to remove the button. Use EnableButton() to enable and disable the button. The button can be forced to retain the "pressed" state by SetButtonPressed().

Parameters
lpszLabelSpecifies the button's text label.
uiCmdUISpecifies the button's command ID.
btnAlignmnetSpecifies the button's alignment.
bHasDropDownArrowTells whether the button displays a drop down arrow. For the "message bar mode" this flag is (usually) turned off.