mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:15:48 +00:00
[SHELL32]
When selecting any FAT filesystem on format dialog, uncheck & disable compression control. It's not supported by this FS. svn path=/trunk/; revision=73512
This commit is contained in:
parent
7a29e16fbd
commit
5ebe380166
1 changed files with 10 additions and 0 deletions
|
@ -229,6 +229,9 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
|||
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 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
|||
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 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
|||
}
|
||||
ClusterSize *= 2;
|
||||
}
|
||||
|
||||
EnableWindow(GetDlgItem(hwndDlg, 28675), TRUE);
|
||||
}
|
||||
else if (!wcsicmp(wszBuf, L"EXT2"))
|
||||
{
|
||||
|
@ -298,6 +306,8 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
|
|||
SendMessageW(hDlgCtrl, CB_SETITEMDATA, lIndex, (LPARAM)ClusterSize);
|
||||
SendMessageW(hDlgCtrl, CB_SETCURSEL, 0, 0);
|
||||
}
|
||||
|
||||
EnableWindow(GetDlgItem(hwndDlg, 28675), TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue