Jump to content
  • Advertisement


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


Directory Fetching Dialog?

This topic is 6411 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
Use the Win32 API Function SHBrowseForFolder.

Check your Win32 Doc for parameter info.

Hope this helps.

Happy coding,

Share this post

Link to post
Share on other sites
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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!