Software Archive
Read-only legacy content
17061 討論

BrowseForFolder default

davidgraham
初學者
337 檢視
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 積分
1 回應
Jugoslav_Dujic
傑出貢獻者 II
337 檢視
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
回覆