开发者

mfc directory picker?

I did see this to modify CFileDial开发者_JAVA技巧og (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++)


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜