CFileDialog ::浏览文件夹 [英] CFileDialog :: Browse folders

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

问题描述

当我尝试实例化CFileDialog对象时,它同时显示了文件夹和文件.如何创建仅浏览文件夹的CFileDialog?

When I try to instantiate a CFileDialog object it shows both the folders and files. How do you create a CFileDialog that browses for folders alone?

推荐答案

您不能使用CFileDialog来做到这一点.

您将使用 SHBrowseForFolder函数或包装器为此,
CFolderDialog-选择文件夹.

You can't do it with CFileDialog.

Either you will use SHBrowseForFolder Function or a wrapper for it,
like CFolderDialog - Selecting Folders.

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

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