Dmitry Timoshkov : user32: Add one more GetSystemMenu test.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 8 06:35:42 CST 2007


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Mon Jan  8 11:16:36 2007 +0800

user32: Add one more GetSystemMenu test.

---

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

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 244c7c7..0933c56 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -3588,6 +3588,16 @@ static void test_sys_menu(void)
     ok(state == 0xffffffff, "wrong SC_CLOSE state %x\n", state);
 
     DestroyWindow(hwnd);
+
+    /* test new window without WS_SYSMENU style */
+    hwnd = CreateWindowExA(0, "NoCloseWindowClass", NULL, WS_OVERLAPPEDWINDOW & ~WS_SYSMENU,
+                           100, 100, 200, 200, 0, 0, 0, NULL);
+    ok(hwnd != 0, "Failed to create overlapped window\n");
+
+    hmenu = GetSystemMenu(hwnd, FALSE);
+    ok(!hmenu, "GetSystemMenu error %d\n", GetLastError());
+
+    DestroyWindow(hwnd);
 }
 
 /* test if we receive the right sequence of messages */




More information about the wine-cvs mailing list