Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/toolbar.c:
+ + hToolbar = CreateWindowExA(0, TOOLBARCLASSNAMEA, NULL, WS_CHILD | CCS_NORESIZE | TBSTYLE_WRAPABLE, + 0, 0, toolbar_width, 30, hMainWnd, NULL, GetModuleHandleA(NULL), NULL); + SendMessageA(hToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0); + + AddButton(hToolbar, btn1, 0); + AddButton(hToolbar, btn2, 1); + AddButton(hToolbar, btn3, 2); + SendMessageA(hToolbar, TB_AUTOSIZE, 0, 0); + + SetWindowPos(hToolbar, NULL, 0, 0, toolbar_width - 1, 30, SWP_NOMOVE | SWP_NOZORDER); + SendMessageA(hToolbar, TB_AUTOSIZE, 0, 0); + result = SendMessageA(hToolbar, TB_GETROWS, 0, 0); + todo_wine ok(result == 2, "Got unexpected nRows: %d.\n", result); + + DestroyWindow(hToolbar); Let's merge these tests into the first commit.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10261#note_146052