user32/tests: Trace foreground window name.
This commit is contained in:
parent
34548b4dfe
commit
b6b9ea7670
|
@ -766,6 +766,7 @@ static void test_foregroundwindow(void)
|
||||||
WNDCLASSA wclass;
|
WNDCLASSA wclass;
|
||||||
wnd_param param;
|
wnd_param param;
|
||||||
DWORD ret;
|
DWORD ret;
|
||||||
|
char win_text[1024];
|
||||||
|
|
||||||
#define DESKTOPS 2
|
#define DESKTOPS 2
|
||||||
|
|
||||||
|
@ -820,6 +821,8 @@ static void test_foregroundwindow(void)
|
||||||
ret = SetForegroundWindow(hwnd_test);
|
ret = SetForegroundWindow(hwnd_test);
|
||||||
Sleep(250);
|
Sleep(250);
|
||||||
hwnd = GetForegroundWindow();
|
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 == hwnd_id)
|
||||||
{
|
{
|
||||||
if (input_desk_id == thread_desk_id)
|
if (input_desk_id == thread_desk_id)
|
||||||
|
|
Loading…
Reference in New Issue