CURSORSHAPE structure (winuser.h)

Contains information about a cursor.

Syntax

typedef struct tagCURSORSHAPE {
  int  xHotSpot;
  int  yHotSpot;
  int  cx;
  int  cy;
  int  cbWidth;
  BYTE Planes;
  BYTE BitsPixel;
} CURSORSHAPE, *LPCURSORSHAPE;

Members

xHotSpot

Type: int

The horizontal position of the hot spot, relative to the upper-left corner of the cursor bitmap.

yHotSpot

Type: int

The vertical position of the hot spot, relative to the upper-left corner of the cursor bitmap.

cx

Type: int

The width, in pixels, of the cursor.

cy

Type: int

The height, in pixels, of the cursor.

cbWidth

Type: int

The width, in bytes, of the cursor bitmap.

Planes

Type: BYTE

The number of color planes.

BitsPixel

Type: BYTE

The number of bits used to indicate the color of a single pixel in the cursor.

Remarks

When an application passes a cursor handle to the LockResource function, the function returns a pointer to a buffer containing information about the cursor. An application can use the CURSORSHAPE structure to access the information.

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

LockResource

Reference

Resources