From e54a97258b7c83411959737ad5e9575be2cf5228 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Wed, 31 Aug 2016 21:15:57 +0000 Subject: [PATCH] [SHELL32] Disable some controls for a network drive. Patch by Jared Smudde. CORE-11897 #resolve #comment Thanks! svn path=/trunk/; revision=72526 --- reactos/dll/win32/shell32/dialogs/drvdefext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/dll/win32/shell32/dialogs/drvdefext.cpp b/reactos/dll/win32/shell32/dialogs/drvdefext.cpp index 6659b6d9c98..5e077dd871a 100644 --- a/reactos/dll/win32/shell32/dialogs/drvdefext.cpp +++ b/reactos/dll/win32/shell32/dialogs/drvdefext.cpp @@ -309,16 +309,16 @@ CDrvDefExt::InitGeneralPage(HWND hwndDlg) default: IconId = IDI_SHELL_DRIVE; TypeStrId = IDS_DRIVE_FIXED; } - if (DriveType == DRIVE_CDROM) + if (DriveType == DRIVE_CDROM || DriveType == DRIVE_REMOTE) { /* volume label textbox */ - EnableWindow(GetDlgItem(hwndDlg, 14000), false); + SendMessage(GetDlgItem(hwndDlg, 14000), EM_SETREADONLY, TRUE, 0); /* disk compression */ - ShowWindow(GetDlgItem(hwndDlg, 14011), false); + ShowWindow(GetDlgItem(hwndDlg, 14011), FALSE); /* index */ - ShowWindow(GetDlgItem(hwndDlg, 14012), false); + ShowWindow(GetDlgItem(hwndDlg, 14012), FALSE); } HICON hIcon = (HICON)LoadImage(shell32_hInstance, MAKEINTRESOURCE(IconId), IMAGE_ICON, 32, 32, LR_SHARED); -- 2.17.1