CListCtrl::GetImageList

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

CImageList* GetImageList( 
   int nImageList  
) const;

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.

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

Show: