Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Folder Dialog Box

Status
Not open for further replies.

jbs

Programmer
Feb 19, 2000
121
US
The below code works great when I need the user to point to a particular file via a standard dialog box. The code that works just fine is:

AnsiString strFilename;
OpenDialog1->Execute;
strFilename=OpenDialog1->FileName;


Question: I'd like a similar dialog box to appear to my user that will prompt the user to point to a folder instead of a particular file.

Is their a OpenFolder dialog box?

 
I'm using VC++3.0 and under Win3.1 there is something named "DirectoryListBox". I have never used it but maybe it will do the job for you? Good luck anyhow.
 
After much searching this morning I found the SelectDirectory() function within FileCtrl.hpp.

It was just what I was looking for.

Thanks for the help,

/jerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top