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

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

Returns
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.

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

Reimplemented in CBCGPColorButton, and CBCGPMenuButton.