in reply to Making GUI to view db records

Perl Oasis uses a Win32::GUI::TreeView to dynamically display a directory tree. It sounds like what you want. Screenshot of the TreeView (in the left pane).

You add nodes to the tree with the InsertItem() method, possibly providing a parent node.

Or did you really want to know how to manage and set up the tree data structure?

/J