mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SHELL32] Remove horizontal scrollbar in File Types property page (#4412)
Reviewed-by: Hermès Bélusca-Maïto <[email protected]>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user