Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


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

CImageList* GetImageList( 
   int nImageList  
) const;


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.

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

ASSERT(m_myListCtrl.GetImageList(LVSIL_NORMAL) == NULL);

m_myListCtrl.SetImageList(&m_lcImageList, LVSIL_NORMAL);
ASSERT(m_myListCtrl.GetImageList(LVSIL_NORMAL) == &m_lcImageList);

Header: afxcmn.h

© 2015 Microsoft