TVM_GETIMAGELIST

The TVM_GETIMAGELIST message retrieves the handle to the normal or state image list associated with a tree-view control. You can send this message explicitly or by using the TreeView_GetImageList macro.

TVM_GETIMAGELIST

wParam = (WPARAM) iImage;

lParam = 0;

Parameters

iImage

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

Value Meaning
TVSIL_NORMAL Retrieves the normal image list, which contains the selected and unselected images for the tree-view item.
TVSIL_STATE Retrieves the state image list, which contains the images for tree-view items that are in a user-defined state.

Return Values

Returns the handle to the image list.

See Also

TreeView_GetImageList