From: Ivan Ivlev <iviv@etersoft.ru> Signed-off-by: Ivan Ivlev <iviv@etersoft.ru> --- dlls/comctl32/tests/toolbar.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dlls/comctl32/tests/toolbar.c b/dlls/comctl32/tests/toolbar.c index b7a101697d0..ba5934b3737 100644 --- a/dlls/comctl32/tests/toolbar.c +++ b/dlls/comctl32/tests/toolbar.c @@ -3150,6 +3150,22 @@ static void test_wrap(void) ok(result == 2, "Got unexpected nRows: %d.\n", result); DestroyWindow(hToolbar); + + 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); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10261