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.
Setting the mouse capture to the specified window
GDI+: Implementing image scrolling with inertia
HWND GetCapture(VOID);
DECLARE INTEGER GetCapture IN user32
This function has no parameters.
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.
The mouse capture.