BCGControlBar Pro for MFC
void CBCGPCaptionBar::RemoveButton ( )

Removes the button from a caption bar.

Call this function to remove the button from a caption bar. The layout of caption bar elements will be adjusted automatically.

Call SetButton() to set the button on a caption bar.