CImageList*GetImageList(intnImageList**) 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:
LVSIL_NORMAL Image list with large icons.
LVSIL_SMALL Image list with small icons.
LVSIL_STATE Image list with state images.
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 Overview | Class Members | Hierarchy Chart
See Also CImageList, CListCtrl::SetImageList