mirror of
https://github.com/reactos/reactos.git
synced 2024-06-24 06:51:47 +00:00
[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:
parent
1b5abe8837
commit
7a83e0a145
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue