Ignore:
Timestamp:
Mar 27, 2001, 6:17:52 PM (24 years ago)
Author:
sandervl
Message:

cursor handling updates

File:
1 edited

Legend:

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

    r5367 r5385  
    1 /* $Id: user32.cpp,v 1.93 2001-03-24 15:40:56 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.94 2001-03-27 16:17:52 sandervl Exp $ */
    22
    33/*
     
    334334//******************************************************************************
    335335//******************************************************************************
    336 HCURSOR WIN32API CreateCursor( HINSTANCE hInst, int xHotSpot, int yHotSpot, int nWidth, int nHeight, const VOID *pvANDPlane, const VOID *pvXORPlane)
    337 {
    338     dprintf(("USER32:  CreateCursor\n"));
    339     return O32_CreateCursor(hInst,xHotSpot,yHotSpot,nWidth,nHeight,pvANDPlane,pvXORPlane);
    340 }
    341 //******************************************************************************
    342 //******************************************************************************
    343 BOOL WIN32API DestroyCursor( HCURSOR hCursor)
    344 {
    345     dprintf(("USER32:  DestroyCursor\n"));
    346     return O32_DestroyCursor(hCursor);
    347 }
    348 //******************************************************************************
    349 //******************************************************************************
    350336BOOL WIN32API GetClipCursor( LPRECT lpRect)
    351337{
    352338    dprintf(("USER32:  GetClipCursor\n"));
    353339    return O32_GetClipCursor(lpRect);
    354 }
    355 //******************************************************************************
    356 //******************************************************************************
    357 HCURSOR WIN32API GetCursor(void)
    358 {
    359     dprintf2(("USER32:  GetCursor\n"));
    360     return O32_GetCursor();
    361 }
    362 //******************************************************************************
    363 //******************************************************************************
    364 BOOL WIN32API GetCursorPos( PPOINT lpPoint)
    365 {
    366     dprintf2(("USER32:  GetCursorPos\n"));
    367 
    368     if (!lpPoint) return FALSE;
    369     if (OSLibWinQueryPointerPos(lpPoint)) //POINT == POINTL
    370     {
    371       mapScreenPoint((OSLIBPOINT*)lpPoint);
    372       return TRUE;
    373     } else return FALSE;
    374 }
    375 //******************************************************************************
    376 //******************************************************************************
    377 HCURSOR WIN32API SetCursor( HCURSOR hcur)
    378 {
    379  HCURSOR rc;
    380 
    381     rc = O32_SetCursor(hcur);
    382     dprintf(("USER32: SetCursor %x (prev %x (%x))\n", hcur, rc, O32_GetCursor()));
    383     return rc;
    384 }
    385 //******************************************************************************
    386 //******************************************************************************
    387 BOOL WIN32API SetCursorPos( int X, int Y)
    388 {
    389     dprintf(("USER32:  SetCursorPos %d %d", X,Y));
    390     return O32_SetCursorPos(X,Y);
    391 }
    392 /*****************************************************************************
    393  * Name      : BOOL WIN32API SetSystemCursor
    394  * Purpose   : The SetSystemCursor function replaces the contents of the system
    395  *             cursor specified by dwCursorId with the contents of the cursor
    396  *             specified by hCursor, and then destroys hCursor. This function
    397  *             lets an application customize the system cursors.
    398  * Parameters: HCURSOR  hCursor    set specified system cursor to this cursor's
    399  *                                 contents, then destroy this
    400  *             DWORD    dwCursorID system cursor specified by its identifier
    401  * Variables :
    402  * Result    : If the function succeeds, the return value is TRUE.
    403  *             If the function fails, the return value is FALSE. To get extended
    404  *             error information, call GetLastError.
    405  * Remark    :
    406  * Status    : UNTESTED STUB
    407  *
    408  * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
    409  *****************************************************************************/
    410 BOOL WIN32API SetSystemCursor(HCURSOR hCursor,
    411                                  DWORD   dwCursorId)
    412 {
    413   dprintf(("USER32:SetSystemCursor (%08xh,%08x) not supported.\n",
    414          hCursor,
    415          dwCursorId));
    416 
    417   return DestroyCursor(hCursor);
    418 }
    419 //******************************************************************************
    420 //******************************************************************************
    421 int WIN32API ShowCursor( BOOL bShow)
    422 {
    423     dprintf2(("USER32:  ShowCursor %d", bShow));
    424     return O32_ShowCursor(bShow);
    425340}
    426341
Note: See TracChangeset for help on using the changeset viewer.