Changeset 385 for trunk/src/user32/new/user32.cpp
- Timestamp:
- Jul 24, 1999, 4:01:45 PM (26 years ago)
- 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:02sandervl Exp $ */1 /* $Id: user32.cpp,v 1.9 1999-07-24 14:01:44 sandervl Exp $ */ 2 2 3 3 /* … … 79 79 //Coordinate transformation 80 80 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 97 81 inline void OS2ToWin32ScreenPos(POINT *dest,POINT *source) 98 82 { … … 279 263 280 264 return TRUE; 281 }282 //******************************************************************************283 //******************************************************************************284 BOOL WIN32API InvalidateRect(HWND hWnd, const RECT *lpRect, BOOL bErase)285 {286 #ifdef DEBUG287 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 #endif291 292 //CB: bErase no quite the same293 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 == RECTL302 } else return OSLibWinInvalidateRect(hWnd,NULL,bErase);303 265 } 304 266 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.