Ignore:
Timestamp:
Jul 24, 1999, 4:01:45 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

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

    r345 r385  
    1 /* $Id: oslibwin.cpp,v 1.18 1999-07-20 15:46:53 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.19 1999-07-24 14:01:44 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    183183//******************************************************************************
    184184//******************************************************************************
    185 BOOL OSLibWinInvalidateRect(HWND hwnd,POSRECTL pwrc,BOOL fIncludeChildren)
    186 {
    187   return WinInvalidateRect(hwnd,(PRECTL)pwrc,fIncludeChildren);
    188 }
    189 //******************************************************************************
    190 //******************************************************************************
    191185LONG OSLibWinQuerySysValue(HWND hwndDeskTop,LONG iSysValue)
    192186{
     
    260254}
    261255//******************************************************************************
    262 //Returns rectangle in Win32 window coordinates
    263 //******************************************************************************
    264 BOOL OSLibWinQueryUpdateRect(HWND hwnd, PVOID pRect)
    265 {
    266  BOOL rc;
     256//******************************************************************************
     257BOOL OSLibWinQueryWindowRect(HWND hwnd, PRECT pRect, int RelativeTo)
     258{
     259 BOOL     rc;
    267260 RECTLOS2 rectl;
    268261
    269   rc = WinQueryUpdateRect(hwnd, (PRECTL)&rectl);
     262  rc = WinQueryWindowRect(hwnd, (PRECTL)&rectl);
    270263  if(rc) {
    271         MapOS2ToWin32Rectl(&rectl, (PRECT)pRect);
     264        if(RelativeTo == RELATIVE_TO_SCREEN) {
     265                MapOS2ToWin32Rectl(OSLIB_HWND_DESKTOP, hwnd, &rectl, pRect);
     266        }
     267        else    MapOS2ToWin32Rectl(&rectl, pRect);
    272268  }
    273269  else  memset(pRect, 0, sizeof(RECT));
Note: See TracChangeset for help on using the changeset viewer.