Skip to content

Commit f669426

Browse files
authored
[COMCTL32] Include size of state imagelist for column 0 LVSCW_AUTOSIZE (reactos#7873)
CORE-20080 CORE-15423
1 parent 52719b5 commit f669426

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dll/win32/comctl32/listview.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8556,8 +8556,13 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx)
85568556
if (infoPtr->himlSmall && (nColumn == 0 || (LISTVIEW_GetColumnInfo(infoPtr, nColumn)->fmt & LVCFMT_IMAGE)))
85578557
max_cx += infoPtr->iconSize.cx;
85588558
max_cx += TRAILING_LABEL_PADDING;
8559+
#ifdef __REACTOS__
8560+
if (nColumn == 0 && infoPtr->himlState)
8561+
max_cx += infoPtr->iconStateSize.cx;
8562+
#else
85598563
if (nColumn == 0 && (infoPtr->dwLvExStyle & LVS_EX_CHECKBOXES))
85608564
max_cx += GetSystemMetrics(SM_CXSMICON);
8565+
#endif
85618566
}
85628567

85638568
/* autosize based on listview items width */

0 commit comments

Comments
 (0)