user32/tests: Test static control exstyle.

Signed-off-by: Rafał Harabień <rafalh92@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rafał Harabień 2022-02-18 01:41:36 +01:00 committed by Alexandre Julliard
parent 281c536551
commit 59e37ec4a1
1 changed files with 8 additions and 0 deletions

View File

@ -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);