- 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
This commit is contained in:
Thomas Faber 2014-04-15 18:03:29 +00:00
parent 5aaa06b20b
commit e2ffe74418
3 changed files with 3 additions and 3 deletions

View file

@ -493,7 +493,7 @@ OnBrowseButton(HWND hwndDlg, PDATA pData)
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)
{

View file

@ -852,7 +852,7 @@ BrowseCursor(HWND hwndDlg)
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;

View file

@ -957,7 +957,7 @@ SoundsDlgProc(HWND hwndDlg,
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)
{