SaveFileDialog() displays a save file dialog and returns the selected file path, if any.
- Parameters:
-
| title | - title string |
| filetypeList | - list of file type / extension pairs. std::map<filename, filemask>, e.g. std::map.Insert("Session files","*.drum_sess") |
| returnPath | - ref to string to fill with received file path, if any. when called, this is also used as the default file name. |
| parentWnd | - parent window |
| promptOverwrite | - if true, prompts if the file already exists... |
| fileExtension | - default file extension to add to file name |
Definition at line 117 of file CATApp_Win32.cpp.
References CAT_ERR_FILESAVE_CANCELLED, CAT_SUCCESS, CATRESULT, CATString::GetUnicodeBuffer(), CATString::GetWChar(), CATString::IsEmpty(), CATString::Length(), CATWindow::OSGetWnd(), and CATString::ReleaseBuffer().