Aug. 4, 2026
8:32 a.m.
The old code was not correct for multicolumn listboxes, so it caused the items to be displayed at an incorrect offset. LISTBOX_GetMaxTopIndex implements special cases for MULTICOLUMN and OWNERDRAWVARIABLE listboxes, allowing the top item to remain consistent. The fix is taken from the following bug report: https://bugs.winehq.org/show_bug.cgi?id=59591 -- v7: user32/listbox: Fix SetRedraw top item handling comctl32/listbox: Fix SetRedraw top item handling user32/tests: Check multicolumn listbox redraw comctl32/tests: Check multicolumn listbox redraw https://gitlab.winehq.org/wine/wine/-/merge_requests/11491