Win32 file dialog: Prefill the filename when saving

This commit is contained in:
Henrik Rydgård
2026-03-07 09:49:57 +01:00
parent 66b8e866fb
commit 9a7241708c
7 changed files with 30 additions and 37 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ void DumpMemoryWindow::HandleBrowseClick(HWND hwnd) {
GetWindowTextW(filenameWnd, &buffer[0], (int)buffer.size());
std::string fn = ConvertWStringToUTF8(buffer);
bool result = W32Util::BrowseForFileName(false, hwnd, L"Select filename", NULL, NULL, NULL, fn);
bool result = W32Util::BrowseForFileName(false, hwnd, L"Select filename", nullptr, L"dump.bin", nullptr, nullptr, fn);
if (result) {
filenameChosen_ = true;
buffer = ConvertUTF8ToWString(fn);