VirtualBox

Ignore:
Timestamp:
Jul 5, 2007 3:41:43 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22691
Message:

get window rect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/glwindrv.cpp

    r3471 r3479  
    310310            RTThreadSleep(100);
    311311    }
    312     RECT rect;
    313     rect.bottom = 0;
    314     rect.left   = 0;
    315     rect.right  = cx;
    316     rect.top    = cy;
    317     /* Convert client rectangel to window rectangle */
    318     AdjustWindowRect(&rect, WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE, FALSE);
    319     SetWindowPos(pClient->hwnd, NULL, 0, 0, rect.right - rect.left, rect.top - rect.bottom, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
     312    SetWindowPos(pClient->hwnd, NULL, 0, 0, cx, cy, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER);
    320313
    321314    pClient->hdc = GetDC(pClient->hwnd);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette