TreeView_GetNodeImage()

Examples


The TreeView_GetNodeImage() function returns an integer indicating the image associated with the specified node.

Syntax

TreeView_GetNodeImage(tree_view_field, node_ID, image_type {, 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 index will be returned.

image_type – An integer specifying which image type to return. 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.

overlay_image – An optional integer indicating the overlay image. This value corresponds to the item number of an item image in the TreeView Images window. If no overlay image is associated with the item, the TV_NOIMAGE constant is returned.

Return value

An integer indicating the image. This value corresponds to the item number of an item image in the TreeView Images window. If no image is associated with the node, the TV_NOIMAGE constant is returned.


Documentation Feedback