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
Solved

How to make a "Directory Selection" dialog

Posted on 1997-10-08
2
420 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
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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
Separate into files by filename 12 87
Smart Camera scanning and reading information 3 114
no14 challenge 14 72
NotAlone Challenge 20 84
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: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 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