tags:

views:

276

answers:

1

Hi All,

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

Thanks...

+5  A: 

You can't with CFileDialog.

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

Nick D