Changeset 2257 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Dec 29, 1999, 11:54:04 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r2246 r2257 1 /* $Id: oslibwin.cpp,v 1.5 5 1999-12-29 12:39:44 sandervlExp $ */1 /* $Id: oslibwin.cpp,v 1.56 1999-12-29 22:54:01 cbratschi Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 325 325 //****************************************************************************** 326 326 //****************************************************************************** 327 BOOL OSLibWinSetWindowPos(HWND hwnd, HWND hwndInsertBehind, LONG x, LONG y, LONG cx,328 LONG cy, ULONG fl)329 {330 HWND hwndParent = hwndInsertBehind;331 BOOL rc;332 333 if(fl & SWP_MOVE) {334 switch(hwndParent)335 {336 case HWNDOS_TOP:337 case HWNDOS_BOTTOM:338 hwndParent = HWND_DESKTOP;339 break;340 }341 y = MapOS2ToWin32Y(hwndParent, cy, y);342 }343 rc = WinSetWindowPos(hwnd, hwndInsertBehind, x, y, cx, cy, fl);344 dprintf(("WinSetWindowPos %x %x %d %d %d %d %x returned %d (%x)", hwnd, hwndInsertBehind, x, y, cx, cy, fl, rc, WinGetLastError(GetThreadHAB())));345 return rc;346 }347 //******************************************************************************348 //******************************************************************************349 327 BOOL OSLibWinSetMultWindowPos(PSWP pswp, ULONG num) 350 328 { … … 383 361 if(rc) { 384 362 if(RelativeTo == RELATIVE_TO_SCREEN) { 385 MapOS2ToWin32Rectl(OSLIB_HWND_DESKTOP, hwnd, &rectl,pRect);363 mapOS2ToWin32Rect(hwnd,OSLIB_HWND_DESKTOP,&rectl,pRect); 386 364 } 387 else MapOS2ToWin32WindowRect(&rectl,pRect);365 else mapOS2ToWin32Rect(hwnd,&rectl,pRect); 388 366 } 389 367 else memset(pRect, 0, sizeof(RECT)); … … 556 534 WinMapWindowPoints(hParent, HWND_DESKTOP, &point, 1); 557 535 } 558 point.y = OSLibQueryScreenHeight() - point.y -swpFrame.cy;536 point.y = ScreenHeight-point.y-swpFrame.cy; 559 537 560 538 cy = swpFrame.cy; … … 579 557 580 558 pswpOld->x = pswp->x; 581 pswpOld->y = swpFrame.cy - pswp->y -pswp->cy;559 pswpOld->y = swpFrame.cy-pswp->y-pswp->cy; 582 560 pswpOld->cx = pswp->cx; 583 561 pswpOld->cy = pswp->cy; … … 643 621 WinMapWindowPoints(hParent, HWND_DESKTOP, &point, 1); 644 622 } 645 point.y = OSLibQueryScreenHeight() - point.y -cy;623 point.y = ScreenHeight-point.y-cy; 646 624 647 625 x = point.x; … … 664 642 665 643 pswpOld->x = swpClient.x; 666 pswpOld->y = pswp->cy - swpClient.y -swpClient.cy;644 pswpOld->y = pswp->cy-swpClient.y-swpClient.cy; 667 645 pswpOld->cx = swpClient.cx; 668 646 pswpOld->cy = swpClient.cy; … … 734 712 if (!((y == 0) && (pswpOld->cy == 0))) 735 713 { 736 y = parentHeight - y -pswpOld->cy;714 y = parentHeight-y-pswpOld->cy; 737 715 } 738 716 } … … 748 726 cy = pswpOld->cy; 749 727 } 750 y = parentHeight - y -cy;728 y = parentHeight-y-cy; 751 729 752 730 … … 819 797 parentHeight = OSLibGetWindowHeight(hParent); 820 798 821 point.y = ScreenHeight - point.y -cy;799 point.y = ScreenHeight-point.y-cy; 822 800 WinMapWindowPoints(HWND_DESKTOP, hParent, &point, 1); 823 point.y = parentHeight - point.y -cy;801 point.y = parentHeight-point.y-cy; 824 802 } 825 803 else parentHeight = ScreenHeight; … … 838 816 cy = pswpOld->cy; 839 817 } 840 y = parentHeight - y -cy;818 y = parentHeight-y-cy; 841 819 842 820
Note:
See TracChangeset
for help on using the changeset viewer.