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
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!