HWND GetCapture(void) |
The GetCapture function retrieves a handle of the window that has the mouse capture. Only one window has the mouse capture at any given time; this window receives mouse input whether or not the cursor is within its borders.
This function has no parameters.
The return value is a handle identifying the window that has the mouse capture if the function is successful. It is NULL if no window has the mouse capture.
A window receives the mouse capture when its handle is passed as the hwnd parameter of the SetCapture function.