Поделиться через


CComboBoxEx::SetImageList

Sets an image list for a ComboBoxEx control.

CImageList* SetImageList(
   CImageList* pImageList 
);

Параметры

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

Возвращаемое значение

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

Заметки

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.

Требования

Header: afxcmn.h

См. также

Основные понятия

CComboBoxEx Class

CComboBoxEx Members

Hierarchy Chart

CComboBoxEx::GetImageList