Archived

This topic is now archived and is closed to further replies.

Ziggy5000

Directory Fetching Dialog?

Recommended Posts

Guest Anonymous Poster   
Guest Anonymous Poster
Use the Win32 API Function SHBrowseForFolder.

Check your Win32 Doc for parameter info.

Hope this helps.

Happy coding,
Philipp

Share this post


Link to post
Share on other sites
Shannon Barber    1681
Doesn''t CFileDialog pick files not directories?

SHBrowseForFolder is what you want, you need to use another function, the name eludes me, to cook the return value from the SHBrowseForFolder and get a path (it returns a SHITEMID)

(the SH stands for Shell in case you were wondering...)

The SDk docs clearly explain how to change the root of the namespace from the desktop to something else, but if you figure out how to expand the tree down to an item, while keeping the root at the desktop, please post & let me know... maybe you need to send messages to the dialog?

Share this post


Link to post
Share on other sites