CFileDialog :: Browse folders

后端 未结 6 1049
野性不改
野性不改 2020-12-17 22:39

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?

6条回答
  •  独厮守ぢ
    2020-12-17 23:30

    You can't do it with CFileDialog.

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

提交回复
热议问题