Author: pschweitzer
Date: Sun Jan 8 17:26:14 2017
New Revision: 73512
URL:
http://svn.reactos.org/svn/reactos?rev=73512&view=rev
Log:
[SHELL32]
When selecting any FAT filesystem on format dialog, uncheck & disable compression
control. It's not supported by this FS.
Modified:
trunk/reactos/dll/win32/shell32/dialogs/drive.cpp
Modified: trunk/reactos/dll/win32/shell32/dialogs/drive.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/dialogs/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/dialogs/drive.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/dialogs/drive.cpp [iso-8859-1] Sun Jan 8 17:26:14
2017
@@ -229,6 +229,9 @@
SendMessageW(hDlgCtrl, CB_SETITEMDATA, lIndex, (LPARAM)ClusterSize);
SendMessageW(hDlgCtrl, CB_SETCURSEL, 0, 0);
}
+
+ SendMessageW(GetDlgItem(hwndDlg, 28675), BM_SETCHECK, BST_UNCHECKED, 0);
+ EnableWindow(GetDlgItem(hwndDlg, 28675), FALSE);
}
else if (!wcsicmp(wszBuf, L"FAT32"))
{
@@ -248,6 +251,9 @@
SendMessageW(hDlgCtrl, CB_SETITEMDATA, lIndex, (LPARAM)ClusterSize);
SendMessageW(hDlgCtrl, CB_SETCURSEL, 0, 0);
}
+
+ SendMessageW(GetDlgItem(hwndDlg, 28675), BM_SETCHECK, BST_UNCHECKED, 0);
+ EnableWindow(GetDlgItem(hwndDlg, 28675), FALSE);
}
else if (!wcsicmp(wszBuf, L"NTFS"))
{
@@ -279,6 +285,8 @@
}
ClusterSize *= 2;
}
+
+ EnableWindow(GetDlgItem(hwndDlg, 28675), TRUE);
}
else if (!wcsicmp(wszBuf, L"EXT2"))
{
@@ -298,6 +306,8 @@
SendMessageW(hDlgCtrl, CB_SETITEMDATA, lIndex, (LPARAM)ClusterSize);
SendMessageW(hDlgCtrl, CB_SETCURSEL, 0, 0);
}
+
+ EnableWindow(GetDlgItem(hwndDlg, 28675), TRUE);
}
else
{