CFileDialog default folder
-
How do I set the default folder for the
CFileDialog
? I thought "must be easy - just set the current directory", but it doesn't seem to use the folder set by::SetCurrentDirectory()
:( Thanks in advance! -
How do I set the default folder for the
CFileDialog
? I thought "must be easy - just set the current directory", but it doesn't seem to use the folder set by::SetCurrentDirectory()
:( Thanks in advance! -
You can specify the starting directory in the OPENFILENAME member of you CFileDialog. The OPENFILENAME's member lpstrInitialDir points to the corresponding directory.
I thought it must be simple, and completely missed that when I looked in the docs for OPENFILENAME. Maybe I put my contact lenses in backwards this morning....:wtf: Thanks for your help!
-
I thought it must be simple, and completely missed that when I looked in the docs for OPENFILENAME. Maybe I put my contact lenses in backwards this morning....:wtf: Thanks for your help!