mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
[COMCTL32] Include size of state imagelist for column 0 LVSCW_AUTOSIZE (#7873)
CORE-20080 CORE-15423
This commit is contained in:
parent
52719b52ae
commit
f669426bf4
1 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue