mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 15:07:53 +00:00
[MSPAINT] Set default extension .bmp (#1515)
Set the default extension of mspaint to .bmp. CORE-7114
This commit is contained in:
parent
8c30fdab1c
commit
f2512254e0
|
@ -355,6 +355,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
ofn.lpstrFileTitle = ofnFiletitle;
|
ofn.lpstrFileTitle = ofnFiletitle;
|
||||||
ofn.nMaxFileTitle = SIZEOF(ofnFiletitle);
|
ofn.nMaxFileTitle = SIZEOF(ofnFiletitle);
|
||||||
ofn.Flags = OFN_HIDEREADONLY;
|
ofn.Flags = OFN_HIDEREADONLY;
|
||||||
|
ofn.lpstrDefExt = L"bmp";
|
||||||
|
|
||||||
CopyMemory(sfnFilename, filepathname, sizeof(filepathname));
|
CopyMemory(sfnFilename, filepathname, sizeof(filepathname));
|
||||||
CString strExporters;
|
CString strExporters;
|
||||||
|
@ -371,6 +372,7 @@ _tWinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPTSTR lpszArgument
|
||||||
sfn.nMaxFileTitle = SIZEOF(sfnFiletitle);
|
sfn.nMaxFileTitle = SIZEOF(sfnFiletitle);
|
||||||
sfn.Flags = OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY | OFN_EXPLORER | OFN_ENABLEHOOK;
|
sfn.Flags = OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY | OFN_EXPLORER | OFN_ENABLEHOOK;
|
||||||
sfn.lpfnHook = OFNHookProc;
|
sfn.lpfnHook = OFNHookProc;
|
||||||
|
sfn.lpstrDefExt = L"bmp";
|
||||||
|
|
||||||
/* creating the size boxes */
|
/* creating the size boxes */
|
||||||
RECT sizeboxPos = {0, 0, 0 + 3, 0 + 3};
|
RECT sizeboxPos = {0, 0, 0 + 3, 0 + 3};
|
||||||
|
|
Loading…
Reference in a new issue