Ignore:
Timestamp:
Apr 15, 2001, 4:29:49 PM (24 years ago)
Author:
sandervl
Message:

Rewrote (Get)ClipCursor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/oslibres.h

    r5385 r5509  
    1 /* $Id: oslibres.h,v 1.6 2001-03-27 16:17:52 sandervl Exp $ */
     1/* $Id: oslibres.h,v 1.7 2001-04-15 14:29:48 sandervl Exp $ */
    22/*
    33 * Window GUI resource wrapper functions for OS/2
     
    5252VOID    OSLibWinDestroyPointer(HANDLE hPointer);
    5353BOOL    OSLibWinSetPointer(HANDLE hPointer);
     54BOOL    OSLibWinClipCursor(const RECT * pRect);
     55BOOL    OSLibWinGetClipCursor(LPRECT pRect);
     56
     57
     58
     59BOOL APIENTRY _WinSetPointerClipRect(HWND hwnd, PRECTL pRect);
     60BOOL APIENTRY _WinQueryPointerClipRect(HWND hwnd, PRECTL pRect);
     61
     62inline BOOL APIENTRY WinSetPointerClipRect(HWND hwnd, PRECTL pRect)
     63{
     64 BOOL yyrc;
     65 USHORT sel = RestoreOS2FS();
     66
     67    yyrc = _WinSetPointerClipRect(hwnd, pRect);
     68    SetFS(sel);
     69
     70    return yyrc;
     71}
     72
     73inline BOOL APIENTRY WinQueryPointerClipRect(HWND hwnd, PRECTL pRect)
     74{
     75 BOOL yyrc;
     76 USHORT sel = RestoreOS2FS();
     77
     78    yyrc = _WinQueryPointerClipRect(hwnd, pRect);
     79    SetFS(sel);
     80
     81    return yyrc;
     82}
    5483
    5584#endif //__OSLIBGDI_H__
Note: See TracChangeset for help on using the changeset viewer.