mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 16:23:37 +00:00
programs: Make some of the open file dialogs of a few programs resizable.
This commit is contained in:
parent
64dbec13ef
commit
9e8f2a7024
|
@ -306,7 +306,7 @@ VOID DIALOG_FileOpen(VOID)
|
||||||
openfilename.nMaxFile = SIZEOF(szPath);
|
openfilename.nMaxFile = SIZEOF(szPath);
|
||||||
openfilename.lpstrInitialDir = szDir;
|
openfilename.lpstrInitialDir = szDir;
|
||||||
openfilename.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST |
|
openfilename.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST |
|
||||||
OFN_HIDEREADONLY;
|
OFN_HIDEREADONLY | OFN_ENABLESIZING;
|
||||||
openfilename.lpstrDefExt = szDefaultExt;
|
openfilename.lpstrDefExt = szDefaultExt;
|
||||||
|
|
||||||
|
|
||||||
|
@ -345,7 +345,7 @@ BOOL DIALOG_FileSaveAs(VOID)
|
||||||
saveas.nMaxFile = SIZEOF(szPath);
|
saveas.nMaxFile = SIZEOF(szPath);
|
||||||
saveas.lpstrInitialDir = szDir;
|
saveas.lpstrInitialDir = szDir;
|
||||||
saveas.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT |
|
saveas.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT |
|
||||||
OFN_HIDEREADONLY;
|
OFN_HIDEREADONLY | OFN_ENABLESIZING;
|
||||||
saveas.lpstrDefExt = szDefaultExt;
|
saveas.lpstrDefExt = szDefaultExt;
|
||||||
|
|
||||||
if (GetSaveFileName(&saveas)) {
|
if (GetSaveFileName(&saveas)) {
|
||||||
|
|
|
@ -137,7 +137,7 @@ static void InitOpenFileName(HWND hWnd, OPENFILENAME *pofn, WCHAR *wszFilter,
|
||||||
pofn->nFilterIndex = 0;
|
pofn->nFilterIndex = 0;
|
||||||
pofn->lpstrFile = wszFileName;
|
pofn->lpstrFile = wszFileName;
|
||||||
pofn->nMaxFile = MAX_LOAD_STRING;
|
pofn->nMaxFile = MAX_LOAD_STRING;
|
||||||
pofn->Flags = OFN_HIDEREADONLY;
|
pofn->Flags = OFN_HIDEREADONLY | OFN_ENABLESIZING;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CopyClsid(HTREEITEM item)
|
static void CopyClsid(HTREEITEM item)
|
||||||
|
|
|
@ -341,6 +341,7 @@ static BOOL ImportRegistryFile(HWND hWnd)
|
||||||
WCHAR title[128];
|
WCHAR title[128];
|
||||||
|
|
||||||
InitOpenFileName(hWnd, &ofn);
|
InitOpenFileName(hWnd, &ofn);
|
||||||
|
ofn.Flags |= OFN_ENABLESIZING;
|
||||||
LoadStringW(hInst, IDS_FILEDIALOG_IMPORT_TITLE, title, COUNT_OF(title));
|
LoadStringW(hInst, IDS_FILEDIALOG_IMPORT_TITLE, title, COUNT_OF(title));
|
||||||
ofn.lpstrTitle = title;
|
ofn.lpstrTitle = title;
|
||||||
if (GetOpenFileNameW(&ofn)) {
|
if (GetOpenFileNameW(&ofn)) {
|
||||||
|
|
|
@ -179,7 +179,7 @@ BOOL WINHELP_GetOpenFileName(LPSTR lpszFile, int len)
|
||||||
openfilename.nMaxFileTitle = 0;
|
openfilename.nMaxFileTitle = 0;
|
||||||
openfilename.lpstrInitialDir = szDir;
|
openfilename.lpstrInitialDir = szDir;
|
||||||
openfilename.lpstrTitle = 0;
|
openfilename.lpstrTitle = 0;
|
||||||
openfilename.Flags = 0;
|
openfilename.Flags = OFN_ENABLESIZING;
|
||||||
openfilename.nFileOffset = 0;
|
openfilename.nFileOffset = 0;
|
||||||
openfilename.nFileExtension = 0;
|
openfilename.nFileExtension = 0;
|
||||||
openfilename.lpstrDefExt = 0;
|
openfilename.lpstrDefExt = 0;
|
||||||
|
|
|
@ -870,7 +870,7 @@ static void DialogSaveFile(void)
|
||||||
ZeroMemory(&sfn, sizeof(sfn));
|
ZeroMemory(&sfn, sizeof(sfn));
|
||||||
|
|
||||||
sfn.lStructSize = 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.hwndOwner = hMainWnd;
|
||||||
sfn.lpstrFilter = wszFilter;
|
sfn.lpstrFilter = wszFilter;
|
||||||
sfn.lpstrFile = wszFile;
|
sfn.lpstrFile = wszFile;
|
||||||
|
@ -964,7 +964,7 @@ static void DialogOpenFile(void)
|
||||||
ZeroMemory(&ofn, sizeof(ofn));
|
ZeroMemory(&ofn, sizeof(ofn));
|
||||||
|
|
||||||
ofn.lStructSize = 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.hwndOwner = hMainWnd;
|
||||||
ofn.lpstrFilter = wszFilter;
|
ofn.lpstrFilter = wszFilter;
|
||||||
ofn.lpstrFile = wszFile;
|
ofn.lpstrFile = wszFile;
|
||||||
|
|
Loading…
Reference in a new issue