?
Solved

How to make a "Directory Selection" dialog

Posted on 1997-10-08
2
Medium Priority
?
423 Views
Last Modified: 2013-11-20
I have a dialog in which I want the user to input the
path to a folder inside an Edit control.  I also want a
"browse" button next to the Edit control to bring up a
selection dialog for picking the folder.  I know how to
bring make the "browse" button bring up a dialog for
selecting a File by using CFileDialog.  How do I make
it bring up a dialog for selecting a Folder?  Is there
such a thing like a CDirectoryDialog?
0
Comment
Question by:kaplan1
[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 8

Accepted Solution

by:
gelbert earned 400 total points
ID: 1307750
there is no CDirectoryDialog, but there is SHBrowseForFolder() you can get source code from www.codeguru.com from "Dialogs" section or you can get non-explorer common dialog from Microsoft FTP(ftp://ftp.microsoft.com/Softlib/MSLFILES) file DIRPK.ZIP
0
 

Author Comment

by:kaplan1
ID: 1307751
Awesome!  The CDirDialog class at codeguru.com works great!
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

777 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