SHBrowseForFolder, but with a text box for navigation

I found all the code I need to get SHBrowseForFolder to work in my application. But I hate that it forces you to do everything in the window of a small folder, without a text field for navigation, typing.

On Windows, I know that I usually see a dialog box for viewing another folder, which allows me to enter folder names and use other normal navigation keys to bypass the desired folder (backspace, "..", Enter, etc. further).

Is there any other API call for this?

+3
source share
3 answers

Try the following:

a.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_EDITBOX;
+2
source

When you call SHBrowseForFolder, you just need to add the flag BIF_EDITBOXto the field ulFlags.

+1
source

Source: https://habr.com/ru/post/1741203/


All Articles