• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

Emulating the "Look-in" box in a CFileDialog

I have created an open-file dialog that emulates in many ways the standard CFileDialog.  (Yes, there are significant reasons that I did not just USE a CFileDialog).  The one thing I have not been able to do at all is emulate the "look In" box, which of course is the combo box that displays the Desktop icon, all available Drives, all the directories in the current path, and the Network Neighborhood icon.  How should I go about doing this?  Should I try to use an owner-draw CComboBox (something I've never done) or is there an easier way?
0
DenMan
Asked:
DenMan
1 Solution
 
raybCommented:
If your up for a challenge, start looking at the documentation for the WIN32 call SHGetDesktopFolder.  This will do the trick, I've used it many times.
If you want something prebuilt, go to this link:
http://www.mvps.org/ccrp/
In particular look at the link for the FolderTreeview control.

0
 
DenManAuthor Commented:
I checked out the link--that looks really helpful, but not for my specific situation (too bad!), partly due to my using Visual C++, not VB. I will look into SHGetDesktopFolder.

How do you display TreeView-organized information in a ComboBox?  I can only get the Combo box to display normal, boring lists; and the tree view will not take the "dropdown" format.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now