For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > September 2004 > Open Dialog









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Open Dialog
Jayme Pechan

2004-09-17, 9:00 pm

I'm using MFC the the CFileDialog but am having trouble allowing the user to
select a directory instead of a file. Can CFileDialog do this or is there
an alternative that would work without recreating the entire dialog?
Thanks.


David Lowndes

2004-09-18, 8:56 am

>I'm using MFC the the CFileDialog but am having trouble allowing the user to
>select a directory instead of a file. Can CFileDialog do this or is there
>an alternative that would work without recreating the entire dialog?


Jayme,

Use the SHBrowseForFolder API to select a directory.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com