Solved

Emulating the "Look-in" box in a CFileDialog

Posted on 1998-08-03
2
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

696 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