Partager via


CButton::SetImageList

Call this method to set the image list of the CButton object.

BOOL SetImageList(
   PBUTTON_IMAGELIST pbuttonImagelist
);

Parameters

  • pbuttonImagelist
    A pointer to the new image list.

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

This member function emulates the functionality of the BCM_SETIMAGELIST message, as described in the Buttons section of the Windows SDK.

Requirements

Header: afxwin.h

See Also

Reference

CButton Class

CButton::GetImageList

Other Resources

CButton Members