views:

24

answers:

2

I did see this to modify CFileDialog (http://support.microsoft.com/kb/105497) but it looks like a lot more than I need.

I'm using the CFileDialog to pick files, is there a simple way to use it to just select a directory?

Any other suggestions?

(I also saw this but is for XP only?
http://msdn.microsoft.com/en-us/library/aa163948%28office.10%29.aspx)

(VS 6.0 C++)

+3  A: 

You will probably want to use the SHBrowseForFolder API. There are lots of wrapper classes out there that make it easier to use. Like this one.

jwismar
+1  A: 

Dundas Ultimate Toolbox has a folder selection drop-down tree. It is nice because you don't need to open a new window just for selecting a folder.

The class is defined in FolderTree.h and is called CFolderTree.

Lior Kogan