RECT rc;
GetWindowRect(hwnd, &rc);
SetCursorPos((rc.left + rc.right) / 2, (rc.top + rc.bottom) / 2);