Commit 9e8f2a70 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

programs: Make some of the open file dialogs of a few programs resizable.

parent 64dbec13
......@@ -306,7 +306,7 @@ VOID DIALOG_FileOpen(VOID)
openfilename.nMaxFile = SIZEOF(szPath);
openfilename.lpstrInitialDir = szDir;
openfilename.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST |
OFN_HIDEREADONLY;
OFN_HIDEREADONLY | OFN_ENABLESIZING;
openfilename.lpstrDefExt = szDefaultExt;
......@@ -345,7 +345,7 @@ BOOL DIALOG_FileSaveAs(VOID)
saveas.nMaxFile = SIZEOF(szPath);
saveas.lpstrInitialDir = szDir;
saveas.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT |
OFN_HIDEREADONLY;
OFN_HIDEREADONLY | OFN_ENABLESIZING;
saveas.lpstrDefExt = szDefaultExt;
if (GetSaveFileName(&saveas)) {
......
......@@ -137,7 +137,7 @@ static void InitOpenFileName(HWND hWnd, OPENFILENAME *pofn, WCHAR *wszFilter,
pofn->nFilterIndex = 0;
pofn->lpstrFile = wszFileName;
pofn->nMaxFile = MAX_LOAD_STRING;
pofn->Flags = OFN_HIDEREADONLY;
pofn->Flags = OFN_HIDEREADONLY | OFN_ENABLESIZING;
}
static void CopyClsid(HTREEITEM item)
......
......@@ -341,6 +341,7 @@ static BOOL ImportRegistryFile(HWND hWnd)
WCHAR title[128];
InitOpenFileName(hWnd, &ofn);
ofn.Flags |= OFN_ENABLESIZING;
LoadStringW(hInst, IDS_FILEDIALOG_IMPORT_TITLE, title, COUNT_OF(title));
ofn.lpstrTitle = title;
if (GetOpenFileNameW(&ofn)) {
......
......@@ -179,7 +179,7 @@ BOOL WINHELP_GetOpenFileName(LPSTR lpszFile, int len)
openfilename.nMaxFileTitle = 0;
openfilename.lpstrInitialDir = szDir;
openfilename.lpstrTitle = 0;
openfilename.Flags = 0;
openfilename.Flags = OFN_ENABLESIZING;
openfilename.nFileOffset = 0;
openfilename.nFileExtension = 0;
openfilename.lpstrDefExt = 0;
......
......@@ -870,7 +870,7 @@ static void DialogSaveFile(void)
ZeroMemory(&sfn, sizeof(sfn));
sfn.lStructSize = sizeof(sfn);
sfn.Flags = OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT;
sfn.Flags = OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT | OFN_ENABLESIZING;
sfn.hwndOwner = hMainWnd;
sfn.lpstrFilter = wszFilter;
sfn.lpstrFile = wszFile;
......@@ -964,7 +964,7 @@ static void DialogOpenFile(void)
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.Flags = OFN_HIDEREADONLY | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST;
ofn.Flags = OFN_HIDEREADONLY | OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_ENABLESIZING;
ofn.hwndOwner = hMainWnd;
ofn.lpstrFilter = wszFilter;
ofn.lpstrFile = wszFile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment