RECT rc, rc1, rctomove;
int width = GetSystemMetrics(SM_CXSCREEN);
int height = GetSystemMetrics(SM_CYSCREEN);
rc.left = 0;
rc.top = 0;
rc.right = width;
rc.bottom = height;
GetClientRect(窗口句柄, &rc1);
rctomove.left = (rc.right - rc.left) / 2 - (rc1.right - rc1.left) / 2;
rctomove.right = (rc.right - rc.left) / 2 + (rc1.right - rc1.left) / 2;
rctomove.top = (rc.bottom - rc.top) / 2 - (rc1.bottom - rc1.top) / 2;
rctomove.bottom = (rc.bottom - rc.top) / 2 + (rc1.bottom - rc1.top) / 2;
::SetWindowPos(窗口句柄, HWND_TOPMOST, rctomove.left, rctomove.top, rc1.right - rc1.left, rc1.bottom - rc1.top, SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_HIDEWINDOW);