TreeView_SetNodeStateImage()

Examples


The TreeView_SetNodeStateImage() function sets the state image associated with the specified node.

Syntax

TreeView_SetNodeStateImage(tree_view_field, node_ID, 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 state image is being set.

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

Return value

An integer containing the item number of the previous state image for the specified node. If no state image is associated with the tree view node, the constant TV_NOIMAGE is returned.


Documentation Feedback