CTreeCtrl::SetImageList

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

Return Value

Pointer to the previous image list, if any; otherwise NULL.

Parameters

pImageList

Pointer to the image list to assign. If pImageList is NULL, all images are removed from the tree view control.

nImageListType

Type of image list to set. The image list can be one of the following values:

Remarks

Call this function to set the normal or state image list for a tree view control and redraw the control using the new images.

Example

See the example for CTreeCtrl::GetImageList.

CTreeCtrl OverviewClass MembersHierarchy Chart

See Also   CImageList, CTreeCtrl::GetImageList