mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[SHELL32]
show/hide some controls on disk drive properties based on drive type svn path=/trunk/; revision=68018
This commit is contained in:
parent
8d62f932c5
commit
356aa4f4ad
1 changed files with 13 additions and 1 deletions
|
@ -308,9 +308,18 @@ CDrvDefExt::InitGeneralPage(HWND hwndDlg)
|
|||
default: IconId = IDI_SHELL_DRIVE; TypeStrId = IDS_DRIVE_FIXED;
|
||||
}
|
||||
|
||||
if (DriveType != DRIVE_FIXED)
|
||||
if (DriveType == DRIVE_CDROM)
|
||||
{
|
||||
/* volume label textbox */
|
||||
EnableWindow(GetDlgItem(hwndDlg, 14000), false);
|
||||
|
||||
/* disk compression */
|
||||
ShowWindow(GetDlgItem(hwndDlg, 14011), false);
|
||||
|
||||
/* index */
|
||||
ShowWindow(GetDlgItem(hwndDlg, 14012), false);
|
||||
}
|
||||
|
||||
HICON hIcon = (HICON)LoadImage(shell32_hInstance, MAKEINTRESOURCE(IconId), IMAGE_ICON, 32, 32, LR_SHARED);
|
||||
if (hIcon)
|
||||
SendDlgItemMessageW(hwndDlg, 14016, STM_SETICON, (WPARAM)hIcon, 0);
|
||||
|
@ -367,6 +376,9 @@ CDrvDefExt::InitGeneralPage(HWND hwndDlg)
|
|||
GetDlgItemTextW(hwndDlg, 14009, wszFormat, _countof(wszFormat));
|
||||
swprintf(wszBuf, wszFormat, m_wszDrive[0]);
|
||||
SetDlgItemTextW(hwndDlg, 14009, wszBuf);
|
||||
|
||||
/* show disk cleanup button only for fixed drives */
|
||||
ShowWindow(GetDlgItem(hwndDlg, 14010), DriveType == DRIVE_FIXED);
|
||||
}
|
||||
|
||||
INT_PTR CALLBACK
|
||||
|
|
Loading…
Reference in a new issue