Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.01 KB

GetCapture.md

File metadata and controls

44 lines (28 loc) · 1.01 KB

Home

Function name : GetCapture

Group: Mouse Input - Library: user32


The GetCapture function 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.


Code examples:

Setting the mouse capture to the specified window
GDI+: Implementing image scrolling with inertia

Declaration:

HWND GetCapture(VOID);  

FoxPro declaration:

DECLARE INTEGER GetCapture IN user32  

Parameters:

This function has no parameters.


Return value:

The return value is a handle to the capture window associated with the current thread. If no window in the thread has captured the mouse, the return value is NULL.


Comments:

The mouse capture.