Cursor Position and Appearance

As the user moves the mouse, the mouse generates hardware interrupts. VMOUSE handles the interrupts by calling the cursor VxD's MOVECURSOR function, directing the cursor VxD to move the cursor to a particular position on the display. VMOUSE specifies the position by passing the VxD a Point_Struc structure in the ECX register. The structure specifies the new position in screen coordinates; that is, x and y coordinates relative to the upper-left corner of the display.

VMOUSE hides the cursor by calling the cursor VxD's REMOVECURSOR function. A subsequent call to the MOVECURSOR function makes the cursor visible again.

VMOUSE can direct a cursor VxD to create a conditional-off region by calling the VxD's SETCONDITIONALREGION function. A conditional-off region is a rectangular area on the display where the cursor is hidden. VMOUSE specifies the coordinates of the upper left and lower right corners of the region by passing the coordinates in Point_Struc structures.

See also MOVECURSOR, Point_Struc, REMOVECURSOR, SETCONDITIONALREGION