Condividi tramite


CHeaderCtrl::SetImageList

Assigns an image list to a header control.

CImageList* SetImageList(
   CImageList* pImageList 
);

Parameters

  • pImageList
    A pointer to a CImageList object containing the image list to be assigned to the header control.

Return Value

A pointer to the CImageList object previously assigned to the header control.

Remarks

This member function implements the behavior of the Win32 message HDM_SETIMAGELIST, as described in the Windows SDK. The CImageList object to which the returned pointer points is a temporary object and is deleted in the next idle-time processing.

Example

See the example for CHeaderCtrl::GetImageList.

Requirements

Header: afxcmn.h

See Also

Concepts

CHeaderCtrl Class

CHeaderCtrl Members

Hierarchy Chart

CHeaderCtrl::GetImageList

CHeaderCtrl::CreateDragImage