qt 移动窗口MoveWindow

    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);
posted @ 2020-05-07 18:42  Ajanuw  阅读(...)  评论(...编辑  收藏