SEC_TREECLASS::SetItemImage
BOOLSEC_TREECLASS::SetItemImage(HTREEITEMhItem, intnImage, intnSelectedImage)
Sets the index of the item’s image and its selected image within the tree view control’s image list.
Defined in: trcore.inl
Return Value
Nonzero if successful; otherwise 0.
Parameters
hItem
Handle of the item whose image is to be set.
nImage
The zero based index of the image.
nSelectedImage
The zero based index of the selected image.
Comments
Each item in a tree view control can have a pair of bitmapped images associated with it. The images appear on the left side of an item’s label. One image is displayed when the item is selected, and the other is displayed when the item is not selected. For example, an item might display an open folder when it is selected and a closed folder when it is not selected.