CURSORINFO structure (winuser.h)

Contains global cursor information.

Syntax

typedef struct tagCURSORINFO {
  DWORD   cbSize;
  DWORD   flags;
  HCURSOR hCursor;
  POINT   ptScreenPos;
} CURSORINFO, *PCURSORINFO, *LPCURSORINFO;

Members

cbSize

Type: DWORD

The size of the structure, in bytes. The caller must set this to sizeof(CURSORINFO).

flags

Type: DWORD

The cursor state. This parameter can be one of the following values.

Value Meaning
0
The cursor is hidden.
CURSOR_SHOWING
0x00000001
The cursor is showing.
CURSOR_SUPPRESSED
0x00000002
Windows 8: The cursor is suppressed. This flag indicates that the system is not drawing the cursor because the user is providing input through touch or pen instead of the mouse.

hCursor

Type: HCURSOR

A handle to the cursor.

ptScreenPos

Type: POINT

A structure that receives the screen coordinates of the cursor.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header winuser.h (include Windows.h)

See also

Conceptual

Cursors

GetCursorInfo

POINT

Reference