Changeset 5482


Ignore:
Timestamp:
Apr 5, 2001, 11:31:28 AM (24 years ago)
Author:
sandervl
Message:

rewrote ShowCursor

Location:
trunk/src/user32
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/user32/USER32.DEF

    r5237 r5482  
    1 ; $Id: USER32.DEF,v 1.50 2001-02-21 21:30:43 sandervl Exp $
     1; $Id: USER32.DEF,v 1.51 2001-04-05 09:31:27 sandervl Exp $
    22
    33LIBRARY USER32 INITINSTANCE TERMINSTANCE
     
    1616    __SetCaretBlinkTime         = PMMERGE.10005
    1717    __ShowCaret                 = PMMERGE.10007
     18    __ShowCursor                = PMMERGE.10018
    1819    WinReplyMsg                 = PMMERGE.5325
    1920    _GpiEnableYInversion        = PMGPI.723
  • TabularUnified trunk/src/user32/initterm.cpp

    r5355 r5482  
    139139{
    140140   dprintf(("user32 exit\n"));
    141    ShowCursor(TRUE);
     141   RestoreCursor();
    142142   DestroyDesktopWindow();
    143143   Win32BaseWindow::DestroyAll();
  • TabularUnified trunk/src/user32/initterm.h

    r2469 r5482  
    1 /* $Id: initterm.h,v 1.3 2000-01-18 20:08:10 sandervl Exp $ */
     1/* $Id: initterm.h,v 1.4 2001-04-05 09:31:27 sandervl Exp $ */
    22
    33/*
     
    1515extern DWORD hInstanceUser32;
    1616
     17//winicon.cpp
     18void RestoreCursor();
     19
    1720#endif //__INITTERM_H__
  • TabularUnified trunk/src/user32/oslibwin.cpp

    r5385 r5482  
    1 /* $Id: oslibwin.cpp,v 1.89 2001-03-27 16:17:52 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.90 2001-04-05 09:31:27 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    846846//******************************************************************************
    847847//******************************************************************************
     848BOOL OSLibWinShowPointer(BOOL fShow)
     849{
     850  return WinShowPointer(HWND_DESKTOP, fShow);
     851}
     852//******************************************************************************
     853//******************************************************************************
  • TabularUnified trunk/src/user32/oslibwin.h

    r5385 r5482  
    1 /* $Id: oslibwin.h,v 1.51 2001-03-27 16:17:52 sandervl Exp $ */
     1/* $Id: oslibwin.h,v 1.52 2001-04-05 09:31:27 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    309309BOOL   OSLibWinGetMaxPosition(HWND hwndOS2, RECT *rect);
    310310
     311BOOL   OSLibWinShowPointer(BOOL fShow);
     312
    311313#endif //__OSLIBWIN_H__
  • TabularUnified trunk/src/user32/winicon.cpp

    r5385 r5482  
    1 /* $Id: winicon.cpp,v 1.20 2001-03-27 16:17:52 sandervl Exp $ */
     1/* $Id: winicon.cpp,v 1.21 2001-04-05 09:31:28 sandervl Exp $ */
    22/*
    33 * Win32 Icon Code for OS/2
     
    5454#include "oslibres.h"
    5555#include "oslibwin.h"
     56#include "dc.h"
    5657
    5758#define DBG_LOCALLOG    DBG_winicon
     
    410411//******************************************************************************
    411412//******************************************************************************
    412 int WIN32API ShowCursor( BOOL bShow)
     413INT OPEN32API __ShowCursor(BOOL bShow);
     414
     415inline INT _ShowCursor (BOOL bShow)
     416{
     417 INT yyrc;
     418 USHORT sel = RestoreOS2FS();
     419
     420    yyrc = __ShowCursor(bShow);
     421    SetFS(sel);
     422
     423    return yyrc;
     424}
     425//******************************************************************************
     426static int cursorshowcnt = 0;
     427//******************************************************************************
     428void RestoreCursor()
     429{
     430    dprintf2(("USER32: RestoreCursor %d", cursorshowcnt));
     431    while(cursorshowcnt != 0)
     432    {
     433        if(cursorshowcnt > 0 )
     434        {
     435            ShowCursor(FALSE);
     436        }
     437        else
     438        {
     439            ShowCursor(TRUE);
     440        }
     441    }
     442}
     443//******************************************************************************
     444//******************************************************************************
     445int WIN32API ShowCursor(BOOL bShow)
    413446{
    414447    dprintf2(("USER32: ShowCursor %d", bShow));
    415     return O32_ShowCursor(bShow);
    416 }
    417 //******************************************************************************
    418 //******************************************************************************
     448    cursorshowcnt = cursorshowcnt + ((bShow) ? 1 : -1);
     449    return _ShowCursor(bShow);
     450}
    419451/***********************************************************************
    420452 *           CreateCursorIconIndirect
Note: See TracChangeset for help on using the changeset viewer.