I have an HTREEITEM that is used to make a tree in my UI... Each tree item
has been associated with a right click menu which opens one of several dialog
boxes. The problem is this - when the dialog box is exited, the tree is
redrawn in its initial state - I need to be able to keep track of the current
state of the tree and redraw it in exactly the same way when the dialog box
is closed. I also would like to be able to keep track of the state of the
tree when the app is closed, when the app is reopened I would like to be
able to redraw the state of the tree when the app was closed.

Is this possible? If so how?