Ignore:
Timestamp:
Oct 17, 1999, 8:09:22 PM (26 years ago)
Author:
sandervl
Message:

scrollbar fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/pmwindow.cpp

    r1336 r1342  
    1 /* $Id: pmwindow.cpp,v 1.34 1999-10-17 15:46:08 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.35 1999-10-17 18:09:22 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    605605        //OS/2 Window coordinates -> Win32 Window coordinates
    606606        if(win32wnd->MsgMouseMove(keystate, SHORT1FROMMP(mp1), MapOS2ToWin32Y(win32wnd, SHORT2FROMMP(mp1))))
    607     {
    608         //Changes mouse cursor to default
    609             goto RunDefWndProc;
    610     }
     607        {
     608                //Changes mouse cursor to default
     609                goto RunDefWndProc;
     610        }
    611611        break;
    612612    }
     
    949949
    950950        OSLibMapSWPtoWINDOWPOS(pswp,&wp,pswpo,hParent,hFrame);
     951
     952        SWP swpFrame;
     953        WinQueryWindowPos(WinQueryWindow(hwnd, QW_PARENT), &swpFrame);
     954        POINTL point;
     955
     956        point.x = swpFrame.x;
     957        point.y = swpFrame.y;
     958        WinMapWindowPoints(WinQueryWindow(hwnd, QW_PARENT), HWND_DESKTOP,
     959                           &point, 1);
     960        point.y = OSLibQueryScreenHeight() - point.y - swpFrame.cy;
     961
     962        win32wnd->setWindowRect(point.x, point.y, point.x+swpFrame.cx, point.y+swpFrame.cy);
     963        win32wnd->setClientRect(pswpo->x, pswpo->y, pswpo->x + pswpo->cx, pswpo->y + pswpo->cy);
     964
    951965        win32wnd->MsgPosChanged((LPARAM)&wp);
    952966
Note: See TracChangeset for help on using the changeset viewer.