Sign in to follow this  
VanillaSnake21

Directory Tree

Recommended Posts

VanillaSnake21    175
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
VanillaSnake21    175
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

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