Implemented GetCursorInfo.

This commit is contained in:
Per Nystrom 2002-08-28 23:38:10 +00:00 committed by Alexandre Julliard
parent f98ed45240
commit e765bc1a41
4 changed files with 45 additions and 24 deletions

View File

@ -30,18 +30,18 @@ typedef struct tagCURSORINFO
{
WORD wXMickeys;
WORD wYMickeys;
} CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
} CURSORINFO16, *PCURSORINFO16, *LPCURSORINFO16;
#include "poppack.h"
/***********************************************************************
* Inquire (DISPLAY.101)
*/
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo)
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO16 lpCursorInfo)
{
lpCursorInfo->wXMickeys = 1;
lpCursorInfo->wYMickeys = 1;
return sizeof(CURSORINFO);
return sizeof(CURSORINFO16);
}
/***********************************************************************
@ -91,4 +91,3 @@ VOID WINAPI UserRepaintDisable16( BOOL16 disable )
{
FIXME("stub\n");
}

View File

@ -229,7 +229,7 @@ init UserClientDllInitialize
@ stdcall GetClipboardOwner() GetClipboardOwner
@ stdcall GetClipboardViewer() GetClipboardViewer
@ stdcall GetCursor() GetCursor
@ stub GetCursorInfo
@ stdcall GetCursorInfo(ptr) GetCursorInfo
@ stdcall GetCursorPos(ptr) GetCursorPos
@ stdcall GetDC(long) GetDC
@ stdcall GetDCEx(long long long) GetDCEx

View File

@ -1799,6 +1799,16 @@ typedef struct {
} ICONINFO, *PICONINFO;
typedef struct
{
DWORD cbSize;
DWORD flags;
HCURSOR hCursor;
POINT ptScreenPos;
} CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
#define CURSOR_SHOWING 0x00000001
/* this is the 6 byte accel struct used in Win32 when presented to the user */
typedef struct
{
@ -4032,6 +4042,7 @@ HWND WINAPI GetClipboardOwner(void);
HWND WINAPI GetClipboardViewer(void);
BOOL WINAPI GetClipCursor(LPRECT);
HCURSOR WINAPI GetCursor(void);
BOOL WINAPI GetCursorInfo(PCURSORINFO);
BOOL WINAPI GetCursorPos(LPPOINT);
HDC WINAPI GetDC(HWND);
HDC WINAPI GetDCEx(HWND,HRGN,DWORD);

View File

@ -476,6 +476,17 @@ BOOL WINAPI GetCursorPos( POINT *pt )
}
/***********************************************************************
* GetCursorInfo (USER32.@)
*/
BOOL WINAPI GetCursorInfo( PCURSORINFO pci )
{
if (!pci) return 0;
GetCursorPos(&pci->ptScreenPos);
return 1;
}
/***********************************************************************
* SetCursorPos (USER.70)
*/