CHeaderCtrl::GetImageList

CImageList* GetImageList( ) const;

Return Value

A pointer to a CImageList object.

Remarks

This member function implements the behavior of the Win32 message HDM_GETIMAGELIST, as described in the Platform SDK.

The CImageList object to which the returned pointer points is a temporary object, and is deleted in the next idle-time processing.

Example

// The pointer to my header control.
extern CHeaderCtrl* pmyHeaderCtrl;
// The new image list of the header control.
extern CImageList* pmyImageList;

ASSERT(pmyHeaderCtrl->GetImageList() == NULL);

pmyHeaderCtrl->SetImageList(pmyImageList);
ASSERT(pmyHeaderCtrl->GetImageList() == pmyImageList);

CHeaderCtrl OverviewClass MembersHierarchy Chart

See Also   CHeaderCtrl::SetImageList, CHeaderCtrl::CreateDragImage