ListView_GetImageList

The ListView_GetImageList macro retrieves the handle to an image list used for drawing list view items. You can use this macro or explicitly send the LVM_GETIMAGELIST message.

HIMAGELIST ListView_GetImageList(

HWND hwnd,  
int iImageList  
);  

Parameters

hwnd

Handle to the list view control.

iImageList

Image list to retrieve. This parameter can be one of the following values:

Value Meaning
LVSIL_NORMAL Image list with large icons
LVSIL_SMALL Image list with small icons
LVSIL_STATE Image list with state images

Return Values

Returns the handle of the specified image list if successful or NULL otherwise.

See Also

LVM_GETIMAGELIST