I would like to use a CFolderPickerDialog instance for the purpose of 'Save As'.
In other words, the user will input the name of a (new) folder, which I can then create.
With the CFileDialog base class, this can be done during construction via the first input argument:
BOOL bOpenFileDialog // TRUE for FileOpen, FALSE for FileSaveAs
How can I go about achieving the same functionality for a CFolderPickerDialog instance?
You can not achieve this with CFolderPickerDialog as per my understanding. Le me explain you this. Base class of CFolderPickerDialog is CFileDialog and
bOpenFileDialogthe flag which will allow you to launch file dialog as open or save.Since, CFolderPickerDialog is child class hence microsoft has to provide call to parent (CFileDialog) in constructor. If you open
dlgfile.cppfrom..\Microsoft Visual Studio 14.0\VC\atlmfc\src\mfc\then you will get source code of CFolderPickerDialog class.Now coming to point, if you observe the constructor of CFolderPickerDialog then you get exact reason why its not possible.
First flag is always true that indicate unfortunately, CFolderPickerDialog will open in File Open mode only.