Solved

How to make a "Directory Selection" dialog

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sum67 challenge 35 116
NotAlone Challenge 20 88
Change to event 1 129
Trying to run powershell  in a batch file. How do I do this? 8 117
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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