HANDLE hThread, hWnd;
DWORD tid;
ATOM aclass;
+ POINT orig_pos;
if (!pSendInput)
{
ShowWindow(hWnd, SW_SHOW);
UpdateWindow(hWnd);
+ GetCursorPos(&orig_pos);
+
hThread = CreateThread(NULL, 0, test_menu_input_thread, hWnd, 0, &tid);
while(1)
{
break;
while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
}
+ SetCursorPos(orig_pos.x, orig_pos.y);
DestroyWindow(hWnd);
}