Mouse Input Functions
In this section
Topic | Description |
---|---|
_TrackMouseEvent |
Posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time. This function calls TrackMouseEvent if it exists, otherwise it emulates it. |
DragDetect |
Captures the mouse and tracks its movement until the user releases the left button, presses the ESC key, or moves the mouse outside the drag rectangle around the specified point. The width and height of the drag rectangle are specified by the SM_CXDRAG and SM_CYDRAG values returned by the GetSystemMetrics function. |
GetCapture |
Retrieves a handle to the window (if any) that has captured the mouse. Only one window at a time can capture the mouse; this window receives mouse input whether or not the cursor is within its borders. |
GetDoubleClickTime |
Retrieves the current double-click time for the mouse. A double-click is a series of two clicks of the mouse button, the second occurring within a specified time after the first. The double-click time is the maximum number of milliseconds that may occur between the first and second click of a double-click. The maximum double-click time is 5000 milliseconds. |
GetMouseMovePointsEx |
Retrieves a history of up to 64 previous coordinates of the mouse or pen. |
mouse_event |
The mouse_event function synthesizes mouse motion and button clicks. Note: This function has been superseded. Use SendInput instead. |
ReleaseCapture |
Releases the mouse capture from a window in the current thread and restores normal mouse input processing. A window that has captured the mouse receives all mouse input, regardless of the position of the cursor, except when a mouse button is clicked while the cursor hot spot is in the window of another thread. |
SetCapture |
Sets the mouse capture to the specified window belonging to the current thread. |
SetDoubleClickTime |
Sets the double-click time for the mouse. A double-click is a series of two clicks of a mouse button, the second occurring within a specified time after the first. The double-click time is the maximum number of milliseconds that may occur between the first and second clicks of a double-click. |
SwapMouseButton |
Reverses or restores the meaning of the left and right mouse buttons. |
TrackMouseEvent |
Posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time. Note: The _TrackMouseEvent function calls TrackMouseEvent if it exists, otherwise _TrackMouseEvent emulates TrackMouseEvent. |