Solved

Emulating the "Look-in" box in a CFileDialog

Posted on 1998-08-03
2
250 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now