[SHELL32] Disable some controls for a network drive. Patch by Jared Smudde. CORE-11897 #resolve #comment Thanks!

svn path=/trunk/; revision=72526
This commit is contained in:
Mark Jansen 2016-08-31 21:15:57 +00:00
parent a83d5e5fe6
commit e54a97258b

View file

@ -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);