Author: tfaber
Date: Tue Apr 15 18:03:29 2014
New Revision: 62754
URL:
http://svn.reactos.org/svn/reactos?rev=62754&view=rev
Log:
[CPL]
- Hide "Open as read-only" checkbox in dialogs where the file is always used
read-only. Patch by Ricardo Hanke.
CORE-7760 #resolve
Modified:
trunk/reactos/dll/cpl/desk/background.c
trunk/reactos/dll/cpl/main/mouse.c
trunk/reactos/dll/cpl/mmsys/sounds.c
Modified: trunk/reactos/dll/cpl/desk/background.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/background.c?…
==============================================================================
--- trunk/reactos/dll/cpl/desk/background.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/background.c [iso-8859-1] Tue Apr 15 18:03:29 2014
@@ -493,7 +493,7 @@
ofn.lpstrFileTitle = fileTitle;
ofn.nMaxFileTitle = 256;
ofn.lpstrInitialDir = NULL;
- ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
+ ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
if (GetOpenFileName(&ofn) == TRUE)
{
Modified: trunk/reactos/dll/cpl/main/mouse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/mouse.c?rev=6…
==============================================================================
--- trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/main/mouse.c [iso-8859-1] Tue Apr 15 18:03:29 2014
@@ -852,7 +852,7 @@
ofn.nMaxFile = MAX_PATH;
ofn.lpstrInitialDir = _T("%WINDIR%\\Cursors");
ofn.lpstrTitle = szTitle;
- ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST;
+ ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
if (!GetOpenFileName(&ofn))
return FALSE;
Modified: trunk/reactos/dll/cpl/mmsys/sounds.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/mmsys/sounds.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/mmsys/sounds.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/mmsys/sounds.c [iso-8859-1] Tue Apr 15 18:03:29 2014
@@ -957,7 +957,7 @@
ofn.lpstrFileTitle = L"Search for new sounds"; //FIXME
non-nls
ofn.nMaxFileTitle = wcslen(ofn.lpstrFileTitle);
ofn.lpstrInitialDir = NULL;
- ofn.Flags = OFN_FILEMUSTEXIST;
+ ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
if (GetOpenFileNameW(&ofn) == TRUE)
{