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
Directory Fetching Dialog?
November 02, 2000 05:06 AM
Use the Win32 API Function SHBrowseForFolder.
Check your Win32 Doc for parameter info.
Hope this helps.
Happy coding,
Philipp
Check your Win32 Doc for parameter info.
Hope this helps.
Happy coding,
Philipp
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?
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement