Ignore:
Timestamp:
Jan 20, 2002, 4:26:21 PM (24 years ago)
Author:
sandervl
Message:

VP: fix for position of fake window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibwin.cpp

    r7765 r7780  
    1 /* $Id: oslibwin.cpp,v 1.112 2002-01-12 14:09:30 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.113 2002-01-20 15:26:20 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    374374  else  memset(pRect, 0, sizeof(RECT));
    375375  return rc;
     376}
     377//******************************************************************************
     378//******************************************************************************
     379BOOL OSLibQueryWindowRectAbsolute (HWND hwndOS2, PRECT pRect)
     380{
     381    BOOL     rc;
     382    RECTLOS2 rectl;
     383
     384    rc = WinQueryWindowRect (hwndOS2, (RECTL *)&rectl);
     385    if (rc)
     386    {
     387        rc = WinMapWindowPoints (hwndOS2, HWND_DESKTOP, (POINTL *)&rectl, 2);
     388        if (rc)
     389        {
     390            pRect->left   = rectl.xLeft;
     391            pRect->right  = rectl.xRight;
     392            pRect->top    = mapScreenY (rectl.yTop);
     393            pRect->bottom = mapScreenY (rectl.yBottom);
     394        }
     395    }
     396    if (!rc)
     397    {
     398        memset(pRect, 0, sizeof(*pRect));
     399    }
     400    return rc;
    376401}
    377402//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.