The TreeView_GetClickNode() function returns the ID of the node whose state image was clicked.
TreeView_GetClickNode(tree_view_field)
• tree_view_field – The tree view field containing the node whose state image was clicked.
A long integer containing the node ID of the node whose state image was clicked. The value TV_NODEINVALID is returned if no node state image was clicked.
The TreeView_GetClickNode() should be used only in the state click script for the tree view field.