Expand Minimize

ListView_GetImageList macro

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

Syntax


HIMAGELIST ListView_GetImageList(
  HWND hwnd,
  int iImageList
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

iImageList

Type: int

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

ValueMeaning
LVSIL_NORMAL

Image list with large icons.

LVSIL_SMALL

Image list with small icons.

LVSIL_STATE

Image list with state images.

LVSIL_GROUPHEADER

Image list for group header.

 

Return value

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft