The TreeView_SetNodeData() function sets the data item associated with the specified node.
TreeView_SetNodeData(tree_view_field, node_ID, node_data)
• tree_view_field – The tree view field containing the specified node.
• node_ID – A long integer specifying the ID of the node whose data item will be set.
• node_data – A long integer containing the node data.
A long integer containing the previous data item for the specified node.