Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Emulating the "Look-in" box in a CFileDialog

Posted on 1998-08-03
2
Medium Priority
?
335 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 140 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

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!

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

636 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