Solved

CFileDialog's combobox

Posted on 1997-09-28
1
321 Views
Last Modified: 2013-11-19
I need to implement a combobox that acts as the one in the CFileDialog "Look in", so that when the user drops down the list, a full drive and folder tree appears. Is the any shortcut or encapsulation for this?
0
Comment
Question by:winmeister
1 Comment
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 1307076
If you have new COMCTL32 there is a new ComboBoxEx control which supports a tree control in a drop down.  This would need some encapsulation in a MFC-like class and then be derived from to do what you want.

The alternative is to do it yourself with a regular (owner drawn) combo box.  I have a C++ sample app that shows how to fill an (owner drawn) combo box with a drive and folder info.

I can send you this sample if you want - pelase send me your address

mailto:Roger_Onslow@compsys.com.au

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

12 Experts available now in Live!

Get 1:1 Help Now