- Timestamp:
- Jan 20, 2002, 4:26:21 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r7765 r7780 1 /* $Id: oslibwin.cpp,v 1.11 2 2002-01-12 14:09:30 sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.113 2002-01-20 15:26:20 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 374 374 else memset(pRect, 0, sizeof(RECT)); 375 375 return rc; 376 } 377 //****************************************************************************** 378 //****************************************************************************** 379 BOOL 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; 376 401 } 377 402 //****************************************************************************** -
trunk/src/user32/oslibwin.h
r7765 r7780 1 /* $Id: oslibwin.h,v 1.6 3 2002-01-12 14:09:31 sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.64 2002-01-20 15:26:21 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 238 238 #define RELATIVE_TO_SCREEN 1 239 239 BOOL OSLibWinQueryWindowRect(Win32BaseWindow *window, PRECT pRect, int RelativeTo = RELATIVE_TO_WINDOW); 240 BOOL OSLibQueryWindowRectAbsolute (HWND hwndOS2, PRECT pRect); 240 241 ULONG OSLibGetWindowHeight(HWND hwnd); //for point transformation 241 242 -
trunk/src/user32/win32wbase.cpp
r7765 r7780 1 /* $Id: win32wbase.cpp,v 1.31 1 2002-01-12 14:09:31 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.312 2002-01-20 15:26:21 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 147 147 //(dangerous assumption!!) 148 148 OSLibWinQueryWindowClientRect(OS2Hwnd, &rectClient); 149 rectWindow = rectClient;149 OSLibQueryWindowRectAbsolute (OS2Hwnd, &rectWindow); 150 150 151 151 fFakeWindow = TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.