Author: cwittich
Date: Fri Jun 5 07:38:17 2015
New Revision: 68018
URL:
http://svn.reactos.org/svn/reactos?rev=68018&view=rev
Log:
[SHELL32]
show/hide some controls on disk drive properties based on drive type
Modified:
trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp
Modified: trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs/drvdefext.cpp [iso-8859-1] Fri Jun 5 07:38:17
2015
@@ -308,9 +308,18 @@
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 @@
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