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

View File

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

View File

@ -1799,6 +1799,16 @@ typedef struct {
} ICONINFO, *PICONINFO; } 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 */ /* this is the 6 byte accel struct used in Win32 when presented to the user */
typedef struct typedef struct
{ {
@ -4019,28 +4029,29 @@ BOOL WINAPI GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *);
LONG WINAPI GetClassLongA(HWND,INT); LONG WINAPI GetClassLongA(HWND,INT);
LONG WINAPI GetClassLongW(HWND,INT); LONG WINAPI GetClassLongW(HWND,INT);
#define GetClassLong WINELIB_NAME_AW(GetClassLong) #define GetClassLong WINELIB_NAME_AW(GetClassLong)
INT WINAPI GetClassNameA(HWND,LPSTR,INT); INT WINAPI GetClassNameA(HWND,LPSTR,INT);
INT WINAPI GetClassNameW(HWND,LPWSTR,INT); INT WINAPI GetClassNameW(HWND,LPWSTR,INT);
#define GetClassName WINELIB_NAME_AW(GetClassName) #define GetClassName WINELIB_NAME_AW(GetClassName)
WORD WINAPI GetClassWord(HWND,INT); WORD WINAPI GetClassWord(HWND,INT);
BOOL WINAPI GetClientRect(HWND,LPRECT); BOOL WINAPI GetClientRect(HWND,LPRECT);
HANDLE WINAPI GetClipboardData(UINT); HANDLE WINAPI GetClipboardData(UINT);
INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT); INT WINAPI GetClipboardFormatNameA(UINT,LPSTR,INT);
INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT); INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
#define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName) #define GetClipboardFormatName WINELIB_NAME_AW(GetClipboardFormatName)
HWND WINAPI GetClipboardOwner(void); HWND WINAPI GetClipboardOwner(void);
HWND WINAPI GetClipboardViewer(void); HWND WINAPI GetClipboardViewer(void);
BOOL WINAPI GetClipCursor(LPRECT); BOOL WINAPI GetClipCursor(LPRECT);
HCURSOR WINAPI GetCursor(void); HCURSOR WINAPI GetCursor(void);
BOOL WINAPI GetCursorPos(LPPOINT); BOOL WINAPI GetCursorInfo(PCURSORINFO);
HDC WINAPI GetDC(HWND); BOOL WINAPI GetCursorPos(LPPOINT);
HDC WINAPI GetDCEx(HWND,HRGN,DWORD); HDC WINAPI GetDC(HWND);
HWND WINAPI GetDesktopWindow(void); HDC WINAPI GetDCEx(HWND,HRGN,DWORD);
INT WINAPI GetDlgCtrlID(HWND); HWND WINAPI GetDesktopWindow(void);
HWND WINAPI GetDlgItem(HWND,INT); INT WINAPI GetDlgCtrlID(HWND);
UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL); HWND WINAPI GetDlgItem(HWND,INT);
INT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,UINT); UINT WINAPI GetDlgItemInt(HWND,INT,BOOL*,BOOL);
INT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,UINT); INT WINAPI GetDlgItemTextA(HWND,INT,LPSTR,UINT);
INT WINAPI GetDlgItemTextW(HWND,INT,LPWSTR,UINT);
#define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText) #define GetDlgItemText WINELIB_NAME_AW(GetDlgItemText)
UINT WINAPI GetDoubleClickTime(void); UINT WINAPI GetDoubleClickTime(void);
HWND WINAPI GetFocus(void); HWND WINAPI GetFocus(void);

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) * SetCursorPos (USER.70)
*/ */