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/user32.cpp

    r330 r385  
    1 /* $Id: user32.cpp,v 1.8 1999-07-18 17:12:02 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.9 1999-07-24 14:01:44 sandervl Exp $ */
    22
    33/*
     
    7979//Coordinate transformation
    8080
    81 inline void Win32ToOS2Rect(POSRECTL dest,PRECT source,ULONG windowH)
    82 {
    83   dest->xLeft   = source->left;
    84   dest->xRight  = source->right;
    85   dest->yTop    = windowH-source->top;
    86   dest->yBottom = windowH-source->bottom;
    87 }
    88 
    89 inline void OS2ToWin32Rect(PRECT dest,POSRECTL source,ULONG windowH)
    90 {
    91   dest->left   = source->xLeft;
    92   dest->right  = source->xRight;
    93   dest->top    = windowH-source->yTop;
    94   dest->bottom = windowH-source->yBottom;
    95 }
    96 
    9781inline void OS2ToWin32ScreenPos(POINT *dest,POINT *source)
    9882{
     
    279263
    280264    return TRUE;
    281 }
    282 //******************************************************************************
    283 //******************************************************************************
    284 BOOL WIN32API InvalidateRect(HWND hWnd, const RECT *lpRect, BOOL bErase)
    285 {
    286 #ifdef DEBUG
    287     if(lpRect)
    288         WriteLog("USER32:  InvalidateRect for window %X (%d,%d)(%d,%d) %d\n", hWnd, lpRect->left, lpRect->top, lpRect->right, lpRect->bottom, bErase);
    289     else    WriteLog("USER32:  InvalidateRect for window %X NULL, %d\n", hWnd, bErase);
    290 #endif
    291 
    292     //CB: bErase no quite the same
    293     hWnd = Win32Window::Win32ToOS2Handle(hWnd);
    294     if (lpRect)
    295     {
    296       OSRECTL rect;
    297       ULONG windowH;
    298 
    299       windowH = OSLibGetWindowHeight(hWnd);
    300       Win32ToOS2Rect(&rect,(PRECT)lpRect,windowH);
    301       return OSLibWinInvalidateRect(hWnd,&rect,bErase); //rect == RECTL
    302     } else return OSLibWinInvalidateRect(hWnd,NULL,bErase);
    303265}
    304266//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.