Advertisement

Directory Fetching Dialog?

Started by November 01, 2000 09:50 PM
2 comments, last by Ziggy5000 24 years, 2 months ago
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
laxdigital.com
[email=ziggy@laxdigital.com]ziggy@laxdigital.com[/email]
Use the Win32 API Function SHBrowseForFolder.

Check your Win32 Doc for parameter info.

Hope this helps.

Happy coding,
Philipp
Advertisement
MFC''s CFileDialog class should do the trick.


- null_pointer
Sabre Multimedia
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?
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement