From: Huw Campbell <huw.campbell@gmail.com> --- dlls/comctl32/listview.c | 2 +- dlls/comctl32/tests/listview.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index fd9aef52b87..f0c1b887933 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -5129,7 +5129,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, ITERAT * Reports mode is a bit different there, as there can be many columns, so it has to be careful to * only pull the few required, as many could be off screen. * - * NOTE: TileView Positions + * NOTE: TileView Positions * Because these are laid out in order, and their displacement depends on those preceding them, * we pack some side channel information into lvItem.cColumns. */ diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 1609c8d70cc..777a9dce153 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -770,6 +770,13 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP ok(dispinfo->item.cchTextMax == 260 || broken(dispinfo->item.cchTextMax == 264) /* NT4 reports aligned size */, "buffer size %d\n", dispinfo->item.cchTextMax); + + if (dispinfo->item.mask & LVIF_COLUMNS) + { + dispinfo->item.cColumns = 2; + dispinfo->item.puColumns[0] = 7; + dispinfo->item.puColumns[1] = 6; + } } break; case LVN_DELETEITEM: -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10191