Solved

How to make a "Directory Selection" dialog

Posted on 1997-10-08
2
422 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 100 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

724 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