CListCtrl::GetImageList

CImageList* GetImageList( int nImageList ) const;

Return Value

A pointer to the image list used for drawing list view items.

Parameters

nImageList

Value specifying which image list to retrieve. It can be one of these values:

Remarks

Retrieves the handle of an image list used for drawing list view items.

Example

// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
// The new image list of the list view control.
extern CImageList* pmyImageList;

ASSERT(pmyListCtrl->GetImageList(LVSIL_NORMAL) == NULL);

pmyListCtrl->SetImageList(pmyImageList, LVSIL_NORMAL);
ASSERT(pmyListCtrl->GetImageList(LVSIL_NORMAL) == pmyImageList);

CListCtrl OverviewClass MembersHierarchy Chart

See Also   CImageList, CListCtrl::SetImageList