共用方式為


CComboBoxEx::SetImageList

Sets an image list for a ComboBoxEx control.

CImageList* SetImageList( 
   CImageList* pImageList  
);

Parameters

  • pImageList
    A pointer to a CImageList object containing the images to use with the CComboBoxEx control.

Return Value

A pointer to a CImageList object containing the images previously used by the CComboBoxEx control. NULL if no image list was previously set.

Remarks

This member function implements the functionality of the message CBEM_SETIMAGELIST, as described in the Windows SDK. If you change the height of the default edit control, call the Win32 function SetWindowPos to resize your control after you call SetImageList, or it will not display properly.

The CImageList object pointed to by the return value is a temporary object and is destroyed during the next idle processing time.

Requirements

Header: afxcmn.h

See Also

Reference

CComboBoxEx Class

Hierarchy Chart

CComboBoxEx::GetImageList