TreeView_SetImageList  1JM.YNG 

The TreeView_SetImageList macro sets the normal or state image list for a tree-view control and redraws the control using the new images. You can use this macro or explicitly send the TVM_SETIMAGELISTQ9I661 message.

HIMAGELIST TreeView_SetImageList(

    hwnd,

 

    himl,

 

    iImage

 

   );

 

 

Parameters

hwnd

Handle to the tree-view control.

himl

Handle to the image list. If himl is NULL, all images are removed from the tree-view control.

iImage

Type of image list to set. For a list of possible values, see the description of the TVM_GETIMAGELIST message.

 

Return Values

Returns the handle to the previous image list, if any, or NULL otherwise.

See Also

TVM_GETIMAGELIST, TVM_SETIMAGELIST