Compartir a través de


CButton::SetSplitImageList

Associates an image list with the current split button control.

BOOL SetSplitImageList(
     CImageList* pSplitImageList
);

Parameters

Parameter

Description

[in] pSplitImageList

Pointer to a CImageList object to assign to the current split button control.

Return Value

true if this method is successful; otherwise, false.

Remarks

Use this method only with controls whose button style is BS_SPLITBUTTON or BS_DEFSPLITBUTTON.

This method initializes the mask member of a BUTTON_SPLITINFO structure with the BCSIF_IMAGE flag and the himlGlyph member with the pSplitImageList parameter, and then sends that structure in the BCM_GETSPLITINFO message that is described in the Windows SDK. 

Requirements

Header: afxwin.h

This method is supported in Windows Vista and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

See Also

Reference

CButton Class

Hierarchy Chart

CButton::GetSplitImageList

BCM_SETSPLITINFO

BUTTON_SPLITINFO

CImageList Class

Other Resources

CButton Members