Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IFileDialog Folder selector #35

Open
GitSparTV opened this issue Feb 8, 2019 · 4 comments
Open

IFileDialog Folder selector #35

GitSparTV opened this issue Feb 8, 2019 · 4 comments

Comments

@GitSparTV
Copy link

GitSparTV commented Feb 8, 2019

Hello. According to Microsoft manuals, the IFileDialog can have a option FOS_PICKFOLDERS to enable folder selection instead of file.

Can that be accessed by winapi and be a new feature?
Thanks
sublime_text_2019-02-09_02-07-35

https://docs.microsoft.com/en-us/windows/desktop/api/shobjidl_core/nf-shobjidl_core-ifiledialog-setoptions
https://docs.microsoft.com/ru-ru/windows/desktop/api/shobjidl_core/ne-shobjidl_core-_fileopendialogoptions

@GitSparTV
Copy link
Author

@capr
winapi.treeview is broken now as you commented in file, so there's no alternative to make a folder selector by scratch.

@capr
Copy link
Member

capr commented Feb 11, 2019

Note that winapi doesn't use the COM interface to show the file dialog box but standard win32 API. There probably is an option to select a folder with that API too but I haven't checked.

@capr
Copy link
Member

capr commented Feb 11, 2019

Oops, no there isn't. MSDN says: To display a dialog box that allows the user to select a directory instead of a file, call the SHBrowseForFolder function.

@GitSparTV
Copy link
Author

GitSparTV commented Feb 11, 2019

@capr
I've found this when was searching this question
https://stackoverflow.com/questions/8269696/how-to-use-ifiledialog-with-fos-pickfolder-while-still-displaying-file-names-in

He use FOS_PICKFOLDERS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants