CBitmapButton::AutoLoad

BOOL AutoLoad( UINT nID, CWnd* pParent );

Return Value

Nonzero if successful; otherwise 0.

Parameters

nID

The button’s control ID.

pParent

Pointer to the object that owns the button.

Remarks

Associates a button in a dialog box with an object of the CBitmapButton class, loads the bitmap(s) by name, and sizes the button to fit the bitmap.

Use the AutoLoad function to initialize an owner-draw button in a dialog box as a bitmap button. Instructions for using this function are in the remarks for the CBitmapButton class.

CBitmapButton OverviewClass MembersHierarchy Chart

See Also   CBitmapButton::LoadBitmaps, CBitmapButton::SizeToContent