Group: Mouse Input - Library: user32
The SetCapture function sets the mouse capture to the specified window belonging to the current thread.
Setting the mouse capture to the specified window
Displaying dimmed window behind VFP top-level form
GDI+: Implementing image scrolling with inertia
HWND SetCapture(
HWND hWnd // handle to window
);
DECLARE INTEGER SetCapture IN user32;
INTEGER hWnd
hWnd [in] Handle to the window in the current thread that is to capture the mouse.
The return value is a handle to the window that had previously captured the mouse. If there is no such window, the return value is NULL.