How to use IFileDialog with FOS_PICKFOLDER while still displaying file names in the dialog

前端 未结 2 1347
梦谈多话
梦谈多话 2020-12-15 22:46

I\'m trying to use IFileDialog to select a folder and the following code does this just fine. The problem is I\'d like to see certain file types as well as folders while bro

相关标签:
2条回答
  • 2020-12-15 23:01

    Once you opt for FOS_PICKFOLDERS then you can't see files in the dialog, only folders. If you omit FOS_PICKFOLDERS then you can't select folders, only files. The standard dialog does not support what you are asking. You could write you own dialog but I'd be inclined to find a way to organise your application to fit around the behaviour of the standard dialog.

    0 讨论(0)
  • 2020-12-15 23:12

    Sadly not possible right now, and Microsoft appears to be ignoring a request for the functionality: http://social.msdn.microsoft.com/Forums/en/windowsuidevelopment/thread/4a330e26-4d52-4fce-8a89-5c56fa132688

    0 讨论(0)
提交回复
热议问题