TreeView_SetNodeImage()

Examples


The TreeView_SetNodeImage() function specifies which image to use for the specified node.

Syntax

TreeView_SetNodeImage(tree_view_field, node_ID, image_type, index{, overlay_image})

Parameters

tree_view_field – The tree view field containing the specified node.

node_ID – A long integer specifying the ID of the node whose image will be set.

image_type – An integer specifying which image type to set. Use the TV_SELECTEDIMAGE constant to specify the image displayed when the node is selected. Use the TV_NORMALIMAGE constant to specify the image displayed when the node is not selected.

index – An integer specifying the image to use. The value corresponds to the item number of an item image listed in the TreeView Images window. If no image will be displayed for the node, use the TV_NOIMAGE constant.

overlay_image – An optional integer specifying the image to use as the overlay image. The value corresponds to the item number of an item image listed in the TreeView Images window.

Return value

An integer containing the item number for the image previously associated with the specified node.


Documentation Feedback