https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7a83e0a145a0ef3edf635414fb916bfbc74afe1b
commit 7a83e0a145a0ef3edf635414fb916bfbc74afe1b Author: Jose Carlos Jesus <zecarlos1...@hotmail.com> AuthorDate: Thu Apr 7 14:10:50 2022 +0100 Commit: GitHub <nore...@github.com> CommitDate: Thu Apr 7 16:10:50 2022 +0300 [SHELL32] Remove horizontal scrollbar in File Types property page (#4412) Reviewed-by: Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org> --- dll/win32/shell32/dialogs/filetypes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dll/win32/shell32/dialogs/filetypes.cpp b/dll/win32/shell32/dialogs/filetypes.cpp index c1e08e02198..ba2a5c10a42 100644 --- a/dll/win32/shell32/dialogs/filetypes.cpp +++ b/dll/win32/shell32/dialogs/filetypes.cpp @@ -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);