From: Jeffrey Adler on
Hi all-

Is there a function or variant that works like GetOpenFileName that will
pick an existing directory?

Thanks,

Jeff


From: Jeroen Mostert on
Jeffrey Adler wrote:
> Is there a function or variant that works like GetOpenFileName that will
> pick an existing directory?
>
From the GetOpenFileName() documentation: "To display a dialog box that
allows the user to select a directory instead of a file, call the
SHBrowseForFolder function."

If you literally mean "it must look like the dialog box of GetOpenFileName
but only allow directories", on the other hand, then I'm pretty sure the
answer is "no".

--
J.
From: Jeffrey Adler on

"Jeroen Mostert" <jmostert(a)xs4all.nl> wrote in message
news:48653625$0$14359$e4fe514c(a)news.xs4all.nl...
> Jeffrey Adler wrote:
>> Is there a function or variant that works like GetOpenFileName that will
>> pick an existing directory?
>>
> From the GetOpenFileName() documentation: "To display a dialog box that
> allows the user to select a directory instead of a file, call the
> SHBrowseForFolder function."
>
> If you literally mean "it must look like the dialog box of GetOpenFileName
> but only allow directories", on the other hand, then I'm pretty sure the
> answer is "no".
>
> --
> J.

Thanks!