2.2.2.4.2.3 SendColorCursor

The SendColorCursor order contains a color cursor that the receiver SHOULD use.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Type

Flags

cacheIndex

xHotSpot

yHotSpot

Width

Height

cbANDMask

cbXORMask

aBits (variable)

...

Type (2 bytes): MUST be set to 0x0006.

Flags (2 bytes): MUST be set to 0x0000.

cacheIndex (2 bytes): Specifies a cache identifier to reference this cursor in future cursor operations instead of having to send the cursor data repeatedly in its entirety. Used in subsequent calls to SendColorCursorCacheId.

xHotSpot (2 bytes): The hot spot x-coordinate within the cursor. By default, the hot spot is set to the upper-left corner of the cursor (coordinates 0,0).<3>

yHotSpot (2 bytes): The hot spot y-coordinate within the cursor. By default, the hot spot is set to the upper-left corner of the cursor (coordinates 0,0).<4>

Width (2 bytes): The width, in pixels, of the cursor.

Height (2 bytes): The height, in pixels, of the cursor.

cbANDMask (2 bytes): The length, in bytes, of the AND mask of aBits.

cbXORMask (2 bytes): The length, in bytes, of the color XOR bitmap of aBits.

aBits (variable): The bits for a color XOR bitmap, followed by the bits for an AND mask.