Solved

How to make a "Directory Selection" dialog

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

What Security Threats Are You Missing?

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

19 Experts available now in Live!

Get 1:1 Help Now