Windows sets CCS_VERT when TB_GETEXTENDEDSTYLE is set

Christoph von Wittich Christoph at ApiViewer.de
Sat Feb 22 14:09:18 CST 2014


-------------- next part --------------
>From c9c5aba45a0f30e2571aecc6d6e54f38b9c66188 Mon Sep 17 00:00:00 2001
From: Christoph von Wittich <Christoph at ApiViewer.de>
Date: Sat, 22 Feb 2014 21:08:29 +0100
Subject: [PATCH] Windows sets CCS_VERT when TB_GETEXTENDEDSTYLE 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..8c89ccc 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, "%d: got old style 0x%08x, expected 0x%08x\n", i, oldstyle, oldstyle2);
+    style = SendMessageA(hwnd, TB_GETEXTENDEDSTYLE, 0, 0);
+    ok(style == TBSTYLE_EX_VERTICAL, "%d: got style 0x%08x, expected 0x%08x\n", i, style, TBSTYLE_EX_VERTICAL);
+    style = SendMessageA(hwnd, TB_GETSTYLE, 0, 0);
+ todo_wine
+    ok(style == CCS_VERT, "%d: got style 0x%08x, expected 0x%08x\n", i, style, CCS_VERT);
+        
     DestroyWindow(hwnd);
 }
 
-- 
1.9.0.msysgit.0



More information about the wine-patches mailing list