https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f2512254e00d38d7de6366...
commit f2512254e00d38d7de63661eec1ca706c1efebe5 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Tue Apr 23 14:25:18 2019 +0900 Commit: GitHub noreply@github.com CommitDate: Tue Apr 23 14:25:18 2019 +0900
[MSPAINT] Set default extension .bmp (#1515)
Set the default extension of mspaint to .bmp. CORE-7114 --- base/applications/mspaint/main.cpp | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/base/applications/mspaint/main.cpp b/base/applications/mspaint/main.cpp index 8abe4ffa41..6b0d512cf4 100644 --- a/base/applications/mspaint/main.cpp +++ b/base/applications/mspaint/main.cpp @@ -355,6 +355,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument ofn.lpstrFileTitle = ofnFiletitle; ofn.nMaxFileTitle = SIZEOF(ofnFiletitle); ofn.Flags = OFN_HIDEREADONLY; + ofn.lpstrDefExt = L"bmp";
CopyMemory(sfnFilename, filepathname, sizeof(filepathname)); CString strExporters; @@ -371,6 +372,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument sfn.nMaxFileTitle = SIZEOF(sfnFiletitle); sfn.Flags = OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY | OFN_EXPLORER | OFN_ENABLEHOOK; sfn.lpfnHook = OFNHookProc; + sfn.lpstrDefExt = L"bmp";
/* creating the size boxes */ RECT sizeboxPos = {0, 0, 0 + 3, 0 + 3};