Displaying Tree Structure of directories...

Posted on 2003-11-15
Last Modified: 2010-04-01
I'm facing some problems in displaying the tree structure of the directories on the system.can any one help me out of this....I want to display the Structure as it looks in the "WINDOWS EXPLORER".
Thanx in advance...
currently working on Win32 in VC++...... no MFC..
Question by:hs_8219
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 32

Accepted Solution

jhance earned 34 total points
ID: 9754269
Windows Explorer is a TreeView control.  You can use this without MFC (although it's a lot easier with MFC).
LVL 48

Assisted Solution

AlexFM earned 33 total points
ID: 9754737
This is article which shows how to work with tree control without MFC:

And this article shows how to display directory tree using MFC:

You can use both articles to make your project.
LVL 49

Assisted Solution

DanRollins earned 33 total points
ID: 9760345
The easiset way to show a tree of all directories is to use the


API function.   This provides a simple way to display the nested tree structure, including My Network Places, My Documents, and all of the others.  It lets a user select any folder anywhere on your system and returns the full pathname.  It would not be useful for other things, but your question does not state what functionality you need.

-- Dan

Expert Comment

ID: 10249241
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: jhance {http:#9754269} & AlexFM {http:#9754737} & DanRollins {http:#9760345}

Please leave any comments here within the next seven days.

EE Cleanup Volunteer

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity build a IF/Then Walkthrough Guide 1 319
c++, dynamic object by json 1 65
No module found pypyodbc, 3 58
calling back function with same name and different signature 1 43
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question