The TreeView_GetNodeStateImage() function retrieves the item number of the state image associated with the specified node.
• 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 returned.
An integer indicating the image. This value corresponds to the item number of a state image listed in the TreeView Images window. If no state image is associated with the node, the TV_NOIMAGE constant is returned.