CURSORINFO structure

Contains global cursor information.

Syntax


typedef struct {
  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.

ValueMeaning
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

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

Reference
GetCursorInfo
POINT
Conceptual
Cursors

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.