mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 15:51:49 +00:00
[NOTEPAD][WORDPAD][MSPAINT]... Use newer file open dialog (#3571)
Use new-style file open/save-as dialog. - Add OFN_EXPLORER flag to OPENFILENAME structure in notepad, wordpad, mspaint, clipbrd, mmc, mplay32, mscutils, regedit, winhlp32, progman, shellbtrfs, cryptui, shell32, setupapi, vgafontedit, infinst, and vfdlib modules.
This commit is contained in:
parent
7e6550b35e
commit
bebdfda8b7
22 changed files with 26 additions and 22 deletions
|
@ -43,7 +43,7 @@ DoOpenFile(OUT PWSTR pszFileName)
|
|||
PrepareFilter(pszFilter);
|
||||
ofn.lpstrFilter = pszFilter;
|
||||
ofn.lpstrFile = pszFileName;
|
||||
ofn.Flags = OFN_FILEMUSTEXIST;
|
||||
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST;
|
||||
|
||||
bRet = GetOpenFileNameW(&ofn);
|
||||
HeapFree(hProcessHeap, 0, pszFilter);
|
||||
|
|
|
@ -56,7 +56,7 @@ _tmain(int argc, TCHAR *argv[])
|
|||
ofc.lpstrFilter = FILEOPEN_FILTER;
|
||||
ofc.nFilterIndex = 1;
|
||||
ofc.lpstrTitle = FILEOPEN_TITLE;
|
||||
ofc.Flags = OFN_FILEMUSTEXIST | OFN_LONGNAMES | OFN_PATHMUSTEXIST;
|
||||
ofc.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_LONGNAMES | OFN_PATHMUSTEXIST;
|
||||
ofc.lpstrDefExt = FILEOPEN_DEFEXT;
|
||||
ofc.lpstrFile = FileName;
|
||||
ofc.nMaxFile = sizeof(FileName) / sizeof(TCHAR);
|
||||
|
|
|
@ -404,7 +404,7 @@ void OnBrowse(
|
|||
ofn.nMaxFile = sizeof(file);
|
||||
ofn.lpstrInitialDir = dir;
|
||||
ofn.lpstrTitle = title ? title : FALLBACK_IMAGE_TITLE;
|
||||
ofn.Flags = OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||
ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||
|
||||
// show the open file dialog box
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ void OnBrowse(
|
|||
ofn.lpstrInitialDir = dir;
|
||||
ofn.lpstrTitle = title ? title : "Save Image";
|
||||
ofn.lpstrFilter = "*.*\0*.*\0";
|
||||
ofn.Flags = OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||
ofn.Flags = OFN_EXPLORER | OFN_ENABLESIZING | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST;
|
||||
|
||||
if (GetSaveFileName(&ofn)) {
|
||||
SetDlgItemText(hDlg, IDC_TARGETFILE, file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue