Solved

Emulating the "Look-in" box in a CFileDialog

Posted on 1998-08-03
2
288 Views
Last Modified: 2013-11-19
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
Comment
Question by:DenMan
2 Comments
 
LVL 2

Accepted Solution

by:
rayb earned 70 total points
ID: 1320176
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
 

Author Comment

by:DenMan
ID: 1320177
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question