BCGControlBar Pro for MFC
virtual CSize CBCGPButton::SizeToContent ( BOOL  bCalcOnly = FALSE)

Changes the size of the button's control according to its text and image size.

A CSize object that specifies a new button control size.

When you call this member function the button control is resized to be able to display its text and image.

bCalcOnlyIf nonzero, the new size of the button control is calculated but the actual size is not changed.

Reimplemented in CBCGPColorButton, and CBCGPMenuButton.