#include <bltTree.h> Blt_TreeNode Blt_TreeDeleteNode(tree, node)
Blt_Tree tree (in)
Tree containing the node.
Blt_TreeNode node (in)
Node to be deleted.
The arguments are as follows:
Since all tree objects must contain at least a root node, the root node itself can't be deleted unless the tree is released and destroyed. Therefore you can clear a tree by deleting its root, but the root node will remain until the tree is destroyed.
Blt_TreeNode root;
root = Blt_TreeRootNode(token);
Blt_TreeDeleteNode(token, root);
Notifications
Blt_TreeDeleteNode can trigger tree notify events. You can
be notified whenever a node is deleted by using the Blt_TreeCreateNotifyHandler.
A callback routine is registered that will be automatically invoked whenever
a node is deleted via Blt_TreeDeleteNode to the tree.