qt 移动窗口MoveWindow
时间:2020-05-07 20:00:29
收藏:0
阅读:202
RECT r;
GetWindowRect(this->gameHwnd, &r);
// 获取窗口的宽度和高度
int nWidth = r.right - r.left;
int nHeight = r.bottom - r.top;
MoveWindow(this->gameHwnd,0,0,nWidth,nHeight,false);
评论(0)