Archived

This topic is now archived and is closed to further replies.

graphical tree structure

This topic is 5380 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Creating a dialogue system, I want to display a tree structure (like Windows Explorer). I know how to work with linked lists, so this is not a theoretical problem, much more a question of ease. Is there a C++ class availabe which may be embedded in DirectX? (which is not MFC based)

Share this post


Link to post
Share on other sites
You can use STL std::list or std::vector, but for a tree structure you can keep a pointer to the sibling and to the child. This approach keeps mem low and you don''t need to manage lists of children or siblings.

In case you still want to use the STL lists, you need to #include <list>

- Mete

Share this post


Link to post
Share on other sites