Qian Hong : user32/tests: Trace foreground window name.

Alexandre Julliard julliard at winehq.org
Fri Oct 11 10:11:12 CDT 2013


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

Author: Qian Hong <qhong at codeweavers.com>
Date:   Fri Oct 11 11:55:29 2013 +0800

user32/tests: Trace foreground window name.

---

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

diff --git a/dlls/user32/tests/winstation.c b/dlls/user32/tests/winstation.c
index f4e86ee..755313f 100644
--- a/dlls/user32/tests/winstation.c
+++ b/dlls/user32/tests/winstation.c
@@ -766,6 +766,7 @@ static void test_foregroundwindow(void)
     WNDCLASSA wclass;
     wnd_param param;
     DWORD ret;
+    char win_text[1024];
 
 #define DESKTOPS 2
 
@@ -820,6 +821,8 @@ static void test_foregroundwindow(void)
                 ret = SetForegroundWindow(hwnd_test);
                 Sleep(250);
                 hwnd = GetForegroundWindow();
+                GetWindowText(hwnd, win_text, 1024);
+                trace("hwnd %p name %s\n", hwnd, win_text);
                 if (input_desk_id == hwnd_id)
                 {
                     if (input_desk_id == thread_desk_id)




More information about the wine-cvs mailing list