显示文件夹浏览器 [英] Display Folder Browser

查看:128
本文介绍了显示文件夹浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想像CFileDialog一样显示文件夹浏览器.我怎样才能做到这一点?
我正在使用 Visual Studio 2010 MFC .

谢谢.
gto

Hi,

I want to show Folder Browser like CFileDialog. How can I do this?
I''m working with Visual Studio 2010, MFC.

Thank you.
gto

推荐答案

您需要的只是 ^ ] API.
使用此功能显示浏览文件夹对话框" 的例子很多-请查看此CP文章 [ ^ ]直接函数的用法.

您还可以找到 CP 文章,这些文章提供围绕SHBrowseForFolder:
构建的帮助程序类. - CFoldDialog-选择文件夹 [ XBrowseForFolder-SHBrowseForFolder的包装器 [ [ ^ ]优秀的 CodeProject 文章.
All you need is SHBrowseForFolder[^] API.
There are lots of examples on using this function for displaying Browse For Folder Dialog - check out this CP article[^] for direct usage of the function.

You can also find CP articles that provide helper classes built around SHBrowseForFolder:
- CFolderDialog - Selecting Folders[^]
- XBrowseForFolder - Wrapper for SHBrowseForFolder[^]

If you want to go further and want a folder selection dialog, similar to CFileDialog have a look at this[^] excellent CodeProject article.


这篇关于显示文件夹浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆