mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[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:
parent
a83d5e5fe6
commit
e54a97258b
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue