Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the mouse functions, with a description of the purpose of each.

Function Description

ClipCursor

This function confines the cursor to a rectangular area on the screen.

CreateCursor

This function creates a cursor having the specified size, bit patterns, and hot spot.

DestroyCursor

This function destroys a cursor created by the CreateCursorfunction and frees any memory the cursor occupied.

GetCapture

This function retrieves the handle to the window, if any, that has captured the mouse or stylus input.

GetClipCursor

This function retrieves the screen coordinates of the rectangular area to which the cursor is confined.

GetCursor

This function retrieves the handle to the current cursor.

GetCursorPos

This function retrieves the cursor's position, in screen coordinates.

GetDoubleClickTime

This function retrieves the current double-click time for the mouse or stylus.

GetMouseMovePoints

This function retrieves points, associated with WM_LBUTTONDOWNand WM_MOUSEMOVEmessages, which the OS typically discards when an application cannot process these messages as fast as the application receives these messages.

LoadAnimatedCursor

This function enables an application to define and load a customized, animated wait cursor.

LoadCursor

This function loads a cursor resource.

mouse_event

This function synthesizes mouse motion and button clicks.

ReleaseCapture

This function releases the mouse or stylus capture from a window in the current thread and restores normal processing of input.

SetCapture

This function sets the mouse or style capture to a specified window that belongs to the current thread.

SetCursor

This function establishes the cursor shape.

SetCursorPos

This function moves the cursor to the specified screen coordinates.

ShowCursor

This function displays or hides the cursor.

See Also

Other Resources

Mouse Reference