Changeset 2521 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Jan 26, 2000, 7:02:38 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r2489 r2521 1 /* $Id: oslibwin.cpp,v 1.6 3 2000-01-21 13:30:34 sandervlExp $ */1 /* $Id: oslibwin.cpp,v 1.64 2000-01-26 18:02:34 cbratschi Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 93 93 94 94 if (*hwndFrame) { 95 hwndClient = WinCreateWindow (*hwndFrame,saveBits ? WIN32_STDCLASS :WIN32_STDCLASS2,95 hwndClient = WinCreateWindow (*hwndFrame,saveBits ? WIN32_STDCLASS2:WIN32_STDCLASS, 96 96 NULL, dwClientStyle, 0, 0, 0, 0, 97 97 *hwndFrame, HWND_TOP, FID_CLIENT, NULL, NULL); … … 525 525 point.x = swpFrame.x; 526 526 point.y = swpFrame.y; 527 if(hParent) 527 528 if (hParent) 528 529 { 529 WinMapWindowPoints(hParent, HWND_DESKTOP, &point, 1); 530 RECTL parentRect; 531 532 WinQueryWindowRect(hParent,&parentRect); 533 parentHeight = parentRect.yTop; 534 } else 535 { 536 parentHeight = ScreenHeight; 530 537 } 531 point.y = ScreenHeight-point.y-swpFrame.cy; 538 539 point.y = parentHeight-point.y-swpFrame.cy; 532 540 533 541 cy = swpFrame.cy; … … 610 618 if(fuFlags & (SWP_MOVE | SWP_SIZE)) 611 619 { 620 if (hParent) 621 { 622 RECTL parentRect; 623 624 WinQueryWindowRect(hParent,&parentRect); 625 parentHeight = parentRect.yTop; 626 } else 627 { 628 parentHeight = ScreenHeight; 629 } 630 612 631 point.x = x; 613 point.y = y; 614 615 if(hParent) 616 { 617 WinMapWindowPoints(hParent, HWND_DESKTOP, &point, 1); 618 } 619 point.y = ScreenHeight-point.y-cy; 632 point.y = parentHeight-y-cy; 620 633 621 634 x = point.x; … … 706 719 y = pswpOld->y; 707 720 708 if (!((y == 0) && (pswpOld->cy == 0))) 709 { 710 y = parentHeight-y-pswpOld->cy; 711 } 721 y = parentHeight-y-pswpOld->cy; 712 722 } 713 723 … … 724 734 y = parentHeight-y-cy; 725 735 726 727 if ((pswpOld->x == x) && (pswpOld->y == y)) 736 if ((pswpOld->x == x) && (pswpOld->y == y)) 728 737 flags &= ~SWP_MOVE; 729 738 … … 757 766 UINT fuFlags = pwpos->flags; 758 767 ULONG parentHeight; 759 POINTL point;760 768 761 769 HWND hWinAfter; … … 787 795 if (flags & (SWP_MOVE | SWP_SIZE)) 788 796 { 789 point.x = x;790 point.y = y;791 792 if(hParent) { 793 parentHeight = OSLibGetWindowHeight(hParent);794 795 point.y = ScreenHeight-point.y-cy;796 WinMapWindowPoints(HWND_DESKTOP, hParent, &point, 1);797 point.y = parentHeight-point.y-cy;797 if (hParent) 798 { 799 RECTL parentRect; 800 801 WinQueryWindowRect(hParent,&parentRect); 802 parentHeight = parentRect.yTop; 803 } else 804 { 805 parentHeight = ScreenHeight; 798 806 } 799 else parentHeight = ScreenHeight;800 801 x = point.x;802 y = point.y;803 807 804 808 if (flags & SWP_SIZE) … … 814 818 y = parentHeight-y-cy; 815 819 816 817 if ((pswpOld->x == x) && (pswpOld->y == y)) 820 if ((pswpOld->x == x) && (pswpOld->y == y)) 818 821 flags &= ~SWP_MOVE; 819 822
Note:
See TracChangeset
for help on using the changeset viewer.