Skip to content

Commit e2ffe74

Browse files
committed
[CPL]
- Hide "Open as read-only" checkbox in dialogs where the file is always used read-only. Patch by Ricardo Hanke. CORE-7760 #resolve svn path=/trunk/; revision=62754
1 parent 5aaa06b commit e2ffe74

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

reactos/dll/cpl/desk/background.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ OnBrowseButton(HWND hwndDlg, PDATA pData)
493493
ofn.lpstrFileTitle = fileTitle;
494494
ofn.nMaxFileTitle = 256;
495495
ofn.lpstrInitialDir = NULL;
496-
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
496+
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
497497

498498
if (GetOpenFileName(&ofn) == TRUE)
499499
{

reactos/dll/cpl/main/mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ BrowseCursor(HWND hwndDlg)
852852
ofn.nMaxFile = MAX_PATH;
853853
ofn.lpstrInitialDir = _T("%WINDIR%\\Cursors");
854854
ofn.lpstrTitle = szTitle;
855-
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST;
855+
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
856856

857857
if (!GetOpenFileName(&ofn))
858858
return FALSE;

reactos/dll/cpl/mmsys/sounds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ SoundsDlgProc(HWND hwndDlg,
957957
ofn.lpstrFileTitle = L"Search for new sounds"; //FIXME non-nls
958958
ofn.nMaxFileTitle = wcslen(ofn.lpstrFileTitle);
959959
ofn.lpstrInitialDir = NULL;
960-
ofn.Flags = OFN_FILEMUSTEXIST;
960+
ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
961961

962962
if (GetOpenFileNameW(&ofn) == TRUE)
963963
{

0 commit comments

Comments
 (0)