SEC_TREECLASS::SetImageList
CImageList*SEC_TREECLASS::SetImageList(CImageList*pList, intnImageListType)
Sets the normal or state image list.
Defined in: trcore.inl
Return Value
Pointer to the previous image list, if any; otherwise NULL.
Parameters
pList
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:TVSIL_NORMAL - sets the normal image list, which contains the selected and nonselected images for the tree view item; TVSIL_STATE - sets the state image list, which contains the images for tree view items that are in a user-defined state. LVSIL_HEADER - When the header control is enabled for the tree, this style sets the header image list.
Comments
Call this function to set the normal or state image list for a tree view control (however, no redraw will be performed by this function).