SEC_TREECLASS::GetImageList

CImageList*SEC_TREECLASS::GetImageList(UINTnImageListType)

Returns a pointer to the requested image list.

Defined in: trcore.inl

Return Value

Pointer to the control’s image list if successful; otherwise NULL.

Parameters

nImageListType

Type of image list to retrieve. The image list can be one of the following values: TVSIL_NORMAL - retrieves the normal image list, which contains the selected and nonselected 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.

Comments

Call this function to retrieve the handle of the normal or state image list associated with the tree view control. Each item in a tree view control can have a pair of bitmapped images associated with it. 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.