1

I would like to know how to display a dialog box with the option for select a folder. No using SHBrowseForFolder.

I search and people say that is not possible with GetOpenFileName. Witch api? how to get?

But I show a picture where it is possible:

enter image description here

Paul R
  • 208,748
  • 37
  • 389
  • 560
Jack
  • 11
  • 1
  • 2
  • Why can't you use ShBrowseForFolder? It's the standard way of doing this. – xxbbcc Oct 21 '14 at 21:28
  • You can try this: http://www.abstraction.net/content/articles/how%20to%20customize%20the%20standard%20win32%20browse%20for%20folder%20dialog.htm – xxbbcc Oct 21 '14 at 21:36
  • Or this (starting with Vista): http://msdn.microsoft.com/en-us/library/windows/desktop/bb776913%28v=vs.85%29.aspx – xxbbcc Oct 21 '14 at 21:37
  • 5
    This is IFileOpenDialog with the FOS_PICKFOLDERS option turned on. – Hans Passant Oct 21 '14 at 21:37
  • 1
    `IFileOpenDialog`, as @HansPassant says. It's documented on [MSDN](http://msdn.microsoft.com), and a search here or via Google should turn up C++ examples of using it. – Ken White Oct 21 '14 at 21:38
  • Probably a duplicate of: http://stackoverflow.com/questions/14596493/usage-of-getopenfilename-api-in-vc-for-opening-a-folder-not-a-file – Nikolay Oct 21 '14 at 21:40

0 Answers0