fg_mouseptr()

Win32 DirectX Fastgraph/Light

Prototype

HCURSOR fg_mouseptr (void *masks, int xoffset, int yoffset);

Function fg_mouseptr (masks() As Any, ByVal xoffset As Long, ByVal yoffset As Long) As Long

function fg_mouseptr (var masks; xoffset, yoffset : integer) : HCURSOR;

Description

The fg_mouseptr() function creates a user-defined mouse cursor.

Parameters

masks is a array containing the 16-element or 32-element screen mask followed by the 16-element or 32-element cursor mask. The mouse driver displays the mouse cursor by logically ANDing the screen contents with the screen mask, and then XORing that result with the cursor mask. The first item of each mask corresponds to the top row of the mouse cursor. The following table summarizes the cursor appearance for all possible combinations of mask bits.

Screen Mask Bit

Cursor Mask Bit

Resulting Cursor Pixel

0

0

black

0

1

white

1

0

unchanged

1

1

inverted

xoffset is the x coordinate of the "hot spot" relative to the upper left corner of the mouse cursor.

yoffset is the y coordinate of the "hot spot" relative to the upper left corner of the mouse cursor.

Return value

A Windows handle to the user-defined mouse cursor.

Restrictions

none

See also

fg_mousecur(), fg_mouseini(), fg_mousesiz(), fg_mousevis()

Examples

MCdemo

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.