void SizeToContent( );
Remarks
Call this function to resize a bitmap button to the size of the bitmap.
Example
CBitmapButton myButton;
// Create the bitmap button (must include the BS_OWNERDRAW style).
myButton.Create(NULL, WS_CHILD|WS_VISIBLE|BS_OWNERDRAW,
CRect(10,10,100,100), pParentWnd, 1);
// Load the bitmaps for this button.
myButton.LoadBitmaps(IDB_UP, IDB_DOWN, IDB_FOCUS, IDB_DISABLE);
// Resize the button to be the size of the bitmaps.
myButton.SizeToContent();
CBitmapButton Overview | Class Members | Hierarchy Chart
See Also CBitmapButton::LoadBitmaps, CBitmapButton::AutoLoad