CMFCColorButton::SizeToContent

Resizes the button control to fit its text and image.

virtual CSize SizeToContent(
   BOOL bCalcOnly=FALSE 
);

Parameters

  • [in] bCalcOnly
    If nonzero, the new size of the button control is calculated but the actual size is not changed.

Return Value

A CSize object that specifies a new button control size.

Requirements

Header: afxcolorbutton.h

See Also

Reference

CMFCColorButton Class

Hierarchy Chart