Displaying Tree Structure of directories...

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..
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Windows Explorer is a TreeView control.  You can use this without MFC (although it's a lot easier with MFC).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
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
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.