Compartir a través de


CListCtrl::SetImageList

Assigns an image list to a list view control.

CImageList* SetImageList( 
   CImageList* pImageList, 
   int nImageListType  
);

Parameters

  • pImageList
    Pointer to the image list to assign.

  • nImageListType
    Type of image list. 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 previous image list.

Example

See the example for CListCtrl::GetImageList.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CImageList Class

CListCtrl::GetImageList