1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

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

This commit is contained in:
Rein Klazes 2009-05-06 08:41:15 +02:00 committed by Alexandre Julliard
parent 64dbec13ef
commit 9e8f2a7024
5 changed files with 7 additions and 6 deletions

View File

@ -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)) {

View File

@ -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)

View File

@ -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)) {

View File

@ -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;

View File

@ -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;