BCGSuite for MFC
virtual CSize CBCGPMenuButton::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, image and arrow.

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

Reimplemented from CBCGPButton.