Christoph von Wittich : comctl32/tests: CCS_VERT should be set when TBSTYLE_EX_VERTICAL is set.
Alexandre Julliard
julliard at winehq.org
Tue Mar 4 14:08:50 CST 2014
Module: wine
Branch: master
Commit: 7d5deb2e7f52537dce8f62f768155970f47bcc46
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d5deb2e7f52537dce8f62f768155970f47bcc46
Author: Christoph von Wittich <Christoph at ApiViewer.de>
Date: Sat Feb 22 21:08:29 2014 +0100
comctl32/tests: CCS_VERT should be set when TBSTYLE_EX_VERTICAL is set.
---
dlls/comctl32/tests/toolbar.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/dlls/comctl32/tests/toolbar.c b/dlls/comctl32/tests/toolbar.c
index 29c80fb..c492763 100644
--- a/dlls/comctl32/tests/toolbar.c
+++ b/dlls/comctl32/tests/toolbar.c
@@ -1910,6 +1910,16 @@ static void test_TB_GET_SET_EXTENDEDSTYLE(void)
ok(style == ptr->style_set, "%d: got style 0x%08x, expected 0x%08x\n", i, style, ptr->style_set);
}
+ /* Windows sets CCS_VERT when TB_GETEXTENDEDSTYLE is set */
+ oldstyle2 = SendMessageA(hwnd, TB_GETEXTENDEDSTYLE, 0, 0);
+ oldstyle = SendMessageA(hwnd, TB_SETEXTENDEDSTYLE, 0, TBSTYLE_EX_VERTICAL);
+ ok(oldstyle == oldstyle2, "got old style 0x%08x, expected 0x%08x\n", oldstyle, oldstyle2);
+ style = SendMessageA(hwnd, TB_GETEXTENDEDSTYLE, 0, 0);
+ ok(style == TBSTYLE_EX_VERTICAL, "got style 0x%08x, expected 0x%08x\n", style, TBSTYLE_EX_VERTICAL);
+ style = SendMessageA(hwnd, TB_GETSTYLE, 0, 0);
+ todo_wine
+ ok(style == CCS_VERT, "got style 0x%08x, expected 0x%08x\n", style, CCS_VERT);
+
DestroyWindow(hwnd);
}
More information about the wine-cvs
mailing list