[SHELL32] Remove horizontal scrollbar in File Types property page (#4412)

Reviewed-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
This commit is contained in:
Jose Carlos Jesus 2022-04-07 14:10:50 +01:00 committed by GitHub
parent 1b5abe8837
commit 7a83e0a145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1482,7 +1482,7 @@ FileTypesDlg_InitListView(HWND hwndDlg, HWND hListView)
LVCOLUMNW col;
WCHAR szName[50];
DWORD dwStyle;
INT columnSize = 140;
INT columnSize;
if (!LoadStringW(shell32_hInstance, IDS_COLUMN_EXTENSION, szName, _countof(szName)))
{
@ -1495,7 +1495,7 @@ FileTypesDlg_InitListView(HWND hwndDlg, HWND hListView)
GetClientRect(hListView, &clientRect);
ZeroMemory(&col, sizeof(LV_COLUMN));
columnSize = 120;
columnSize = (clientRect.right - clientRect.left) / 4;
col.iSubItem = 0;
col.mask = LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM | LVCF_FMT;
col.fmt = LVCFMT_FIXED_WIDTH;
@ -1512,7 +1512,7 @@ FileTypesDlg_InitListView(HWND hwndDlg, HWND hListView)
}
col.iSubItem = 1;
col.cx = clientRect.right - clientRect.left - columnSize;
col.cx = clientRect.right - clientRect.left - columnSize - GetSystemMetrics(SM_CYVSCROLL);
col.cchTextMax = wcslen(szName);
col.pszText = szName;
SendMessageW(hListView, LVM_INSERTCOLUMNW, 1, (LPARAM)&col);