Software Archive
Read-only legacy content
17061 Discussions

BrowseForFolder default

davidgraham
Beginner
336 Views
I am using the BrowseForFolder function and I want it to start in a specified directory rather than in the root.
Is this possible?

BrowseForFolder is part of CommonDlgXtras.f90 which calls SHBrowseForFolder.
I must have got CommonDlgXtras.f90 from someone in this group.

Thanks, David
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
336 Views
See this Forum thread for a sample. The sample
refers to situation when entire tree is visible, but specific folder is initially selected.
If you want your folder to be the root of the tree (which is less common situation), see pidlRoot member of BROWSEINFO structure... I forgot how to get pidlRoot, though.

Regards

Jugoslav
0 Kudos
Reply