[COMCTL32] Include size of state imagelist for column 0 LVSCW_AUTOSIZE (#7873)

CORE-20080 CORE-15423
This commit is contained in:
Whindmar Saksit 2025-04-07 21:20:15 +02:00 committed by GitHub
parent 52719b52ae
commit f669426bf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8556,8 +8556,13 @@ 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;
#ifdef __REACTOS__
if (nColumn == 0 && infoPtr->himlState)
max_cx += infoPtr->iconStateSize.cx;
#else
if (nColumn == 0 && (infoPtr->dwLvExStyle & LVS_EX_CHECKBOXES))
max_cx += GetSystemMetrics(SM_CXSMICON);
#endif
}
/* autosize based on listview items width */