Dmitry Timoshkov : user32: Add a couple of tests for WS_EX_TOPMOST.

Alexandre Julliard julliard at winehq.org
Tue Feb 12 16:46:16 CST 2008


Module: wine
Branch: master
Commit: 066c60eb312609737b4b66e69c91750612364b05
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=066c60eb312609737b4b66e69c91750612364b05

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu Feb  7 23:03:39 2008 +0800

user32: Add a couple of tests for WS_EX_TOPMOST.

---

 dlls/user32/tests/win.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index d0a9673..7e4c98c 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -1857,6 +1857,14 @@ static void test_SetWindowPos(HWND hwnd)
 
     SetWindowPos(hwnd, 0, orig_win_rc.left, orig_win_rc.top,
                  orig_win_rc.right, orig_win_rc.bottom, 0);
+
+    ok(!(GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOPMOST), "WS_EX_TOPMOST should not be set\n");
+    SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);
+    ok(GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOPMOST, "WS_EX_TOPMOST should be set\n");
+    SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);
+    ok(GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOPMOST, "WS_EX_TOPMOST should be set\n");
+    SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);
+    ok(!(GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOPMOST), "WS_EX_TOPMOST should not be set\n");
 }
 
 static void test_SetMenu(HWND parent)




More information about the wine-cvs mailing list