user32/tests: Trace foreground window name.

This commit is contained in:
Qian Hong 2013-10-11 11:55:29 +08:00 committed by Alexandre Julliard
parent 34548b4dfe
commit b6b9ea7670
1 changed files with 3 additions and 0 deletions

View File

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