Rafał Harabień : user32/tests: Test static control exstyle.

Alexandre Julliard julliard at winehq.org
Wed Feb 23 16:00:05 CST 2022


Module: wine
Branch: master
Commit: 59e37ec4a10e5ab527c5bb2a745e97a3bf96dba3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=59e37ec4a10e5ab527c5bb2a745e97a3bf96dba3

Author: Rafał Harabień <rafalh92 at outlook.com>
Date:   Fri Feb 18 01:41:36 2022 +0100

user32/tests: Test static control exstyle.

Signed-off-by: Rafał Harabień <rafalh92 at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/static.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/user32/tests/static.c b/dlls/user32/tests/static.c
index b09e6e7f3ae..feb0c10c9e8 100644
--- a/dlls/user32/tests/static.c
+++ b/dlls/user32/tests/static.c
@@ -83,9 +83,17 @@ static void test_updates(int style, int flags)
     RECT r1 = {20, 20, 30, 30};
     HWND hStatic = build_static(style);
     int exp;
+    LONG exstyle;
 
     flush_events();
     trace("Testing style 0x%x\n", style);
+
+    exstyle = GetWindowLongW(hStatic, GWL_EXSTYLE);
+    if (style == SS_ETCHEDHORZ || style == SS_ETCHEDVERT || style == SS_SUNKEN)
+        todo_wine_if(style == SS_ETCHEDHORZ || style == SS_ETCHEDVERT) ok(exstyle == WS_EX_STATICEDGE, "expected WS_EX_STATICEDGE, got %d\n", exstyle);
+    else
+        ok(exstyle == 0, "expected 0, got %d\n", exstyle);
+
     g_nReceivedColorStatic = 0;
     /* during each update parent WndProc will test the WM_CTLCOLORSTATIC message */
     InvalidateRect(hMainWnd, NULL, FALSE);




More information about the wine-cvs mailing list