Re: [PATCH v6 0/4] MR11491: comctl32/listbox: Fix SetRedraw top item handling
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/listbox.c:
+ ret = SendMessageA(listbox, WM_SETREDRAW, FALSE, 0); + ok(!ret, "got %d\n", ret); + + /* Force LBS_DISPLAYCHANGED */ + SendMessageA(listbox, LB_ADDSTRING, 0, (LPARAM)"new item"); + + ret = SendMessageA(listbox, WM_SETREDRAW, TRUE, 0); + ok(!ret, "got %d\n", ret); + + /* Ensure top_index is correct after redraw */ + top_index_after = SendMessageA(listbox, LB_GETTOPINDEX, 0, 0); + ok(top_index_after == top_index_before, + "Expected top index %d after WM_SETREDRAW, got %d\n", + top_index_before, top_index_after); + + DestroyWindow(listbox); listbox will be destroyed when you destroy its parent.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11491#note_147796
participants (1)
-
Zhiyi Zhang (@zhiyi)