From fb7caa745240b523f6e826b60b2c735558f6bd68 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Tue, 13 Feb 2018 19:47:58 +0100 Subject: [PATCH] [COMCTL32] Import wine commit 71cf0a31d99feb to fix the name column width in rapps. --- dll/win32/comctl32/listview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dll/win32/comctl32/listview.c b/dll/win32/comctl32/listview.c index 00c6ba2ad70..94b1fc28b17 100644 --- a/dll/win32/comctl32/listview.c +++ b/dll/win32/comctl32/listview.c @@ -8415,6 +8415,8 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx) if (infoPtr->himlSmall && (nColumn == 0 || (LISTVIEW_GetColumnInfo(infoPtr, nColumn)->fmt & LVCFMT_IMAGE))) max_cx += infoPtr->iconSize.cx; max_cx += TRAILING_LABEL_PADDING; + if (nColumn == 0 && (infoPtr->dwLvExStyle & LVS_EX_CHECKBOXES)) + max_cx += GetSystemMetrics(SM_CXSMICON); } /* autosize based on listview items width */