This function retrieves the handle to the window (if any) that has captured the mouse or stylus input. Only one window at a time can capture the mouse or stylus input.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
HWND GetCapture(void);
Return Values
The handle of the capture window associated with the current thread indicates success. NULL indicates that no window in the thread has captured the mouse.
Remarks
A NULL return value does not mean no other thread or process in the system has captured the mouse; it just means the current thread has not captured the mouse.
See Also