Sign in to follow this  

Directory Tree

This topic is 3809 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

Hi, i want to make a dialog that will let the user choose a directory, but I don't know how to go about listing all the directories. I thought about using CTreeCtrl and then fill it in during runtime by iterating through all directories and getting their names. So does anyone know how to get the directory name, then look for other directories within that one, and recurse down into it? I tried using ICurrentWorkingDirectory but I think I have to initialize it somehow for it to work. BTW if anyone knows how to do this with Boost or other libraries, or in a simpler way please let me know, thanks :)

Share this post


Link to post
Share on other sites
Quote:
Original post by SiCrane
Assuming that you're using windows, did you try the SHBrowseForFolder() function?


Wow thanks, one function does it all for you, I will use this for now but I'd want to add some custom stuff to my list, so maybe you know a function that will get/set a directory name, Thanks :]

Share this post


Link to post
Share on other sites

This topic is 3809 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this