[PATCH 2/7] user32/tests: test static control exstyle
Rafał Harabień
rafalh92 at outlook.com
Thu Feb 17 18:41:36 CST 2022
Signed-off-by: Rafał Harabień <rafalh92 at outlook.com>
---
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);
--
2.25.1
More information about the wine-devel
mailing list