• Advertisement

Archived

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

Directory Fetching Dialog?

This topic is 6291 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

Is there a simple way to create one in Windows98? (MFC & VC6) The only other option (IMHO) would be to make a custom CDialog and implement a CTreeCtrl and a lot of code to fill it with the directory structure... arghhh thanks for any help or links... ill-lusion.com
ziggy@ill-lusion.com

Share this post


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