GetCapture

2.x

  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.

Parameters

This function has no parameters.

Return Value

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.

Comments

A window receives the mouse capture when its handle is passed as the hwnd parameter of the SetCapture function.

See Also

SetCapture