Share via


CListCtrl::GetImageList

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

CImageList* GetImageList( 
   int nImageList  
) const;

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.

Return Value

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

Example

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

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

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CImageList Class

CListCtrl::SetImageList