GetCapture function user32

HWND 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.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getcapture.

Implementation

@pragma('vm:prefer-inline')
HWND GetCapture() => HWND(_GetCapture());