Changeset 1342 for trunk/src


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

scrollbar fixes

Location:
trunk/src/user32
Files:
2 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
  • trunk/src/user32/scroll.cpp

    r1333 r1342  
    1 /* $Id: scroll.cpp,v 1.9 1999-10-17 12:17:44 cbratschi Exp $ */
     1/* $Id: scroll.cpp,v 1.10 1999-10-17 18:09:22 sandervl Exp $ */
    22/*
    33 * Scrollbar control
     
    11331133            CONV_POINT16TO32( (POINT16 *)&lParam, &pt );
    11341134            SCROLL_HandleScrollEvent( hwnd, SB_HORZ, message, pt );
     1135            if(message == WM_MOUSEMOVE) {
     1136                return 1; //SvL: Let PM change the mouse cursor to the default
     1137            }
    11351138        }
    11361139        break;
     
    12081211            CONV_POINT16TO32( (POINT16 *)&lParam, &pt );
    12091212            SCROLL_HandleScrollEvent( hwnd, SB_VERT, message, pt );
     1213            if(message == WM_MOUSEMOVE) {
     1214                return 1; //SvL: Let PM change the mouse cursor to the default
     1215            }
    12101216        }
    12111217        break;
Note: See TracChangeset for help on using the changeset viewer.