From 9b7b3ef1c4d97c1fadfe78f3a73c85c86fdb5eaf Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 23 Feb 2010 13:18:26 -0500 Subject: [PATCH] user32/tests: Test to show that caption added for WS_EX_LAYERED as well. --- dlls/user32/tests/win.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index cd83749e702..03ff8f5b0e2 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -3424,6 +3424,14 @@ static void test_window_styles(void) check_window_style(WS_CHILD, WS_EX_DLGMODALFRAME|WS_EX_STATICEDGE, WS_CHILD, WS_EX_STATICEDGE|WS_EX_WINDOWEDGE|WS_EX_DLGMODALFRAME); check_window_style(WS_CAPTION, WS_EX_STATICEDGE, WS_CLIPSIBLINGS|WS_CAPTION, WS_EX_STATICEDGE|WS_EX_WINDOWEDGE); check_window_style(0, WS_EX_APPWINDOW, WS_CLIPSIBLINGS|WS_CAPTION, WS_EX_APPWINDOW|WS_EX_WINDOWEDGE); + + if (pGetLayeredWindowAttributes) + { + check_window_style(0, WS_EX_LAYERED, WS_CLIPSIBLINGS|WS_CAPTION, WS_EX_LAYERED|WS_EX_WINDOWEDGE); + check_window_style(0, WS_EX_LAYERED|WS_EX_TRANSPARENT, WS_CLIPSIBLINGS|WS_CAPTION, WS_EX_LAYERED|WS_EX_TRANSPARENT|WS_EX_WINDOWEDGE); + check_window_style(0, WS_EX_LAYERED|WS_EX_TRANSPARENT|WS_EX_TOOLWINDOW, WS_CLIPSIBLINGS|WS_CAPTION, + WS_EX_LAYERED|WS_EX_TRANSPARENT|WS_EX_TOOLWINDOW|WS_EX_WINDOWEDGE); + } } static void test_scrollwindow( HWND hwnd)