ReleaseCapture

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function releases the mouse or stylus capture from a window in the current thread and restores normal processing of input.

Syntax

BOOL ReleaseCapture(void);

Parameters

None.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

An application calls this function after calling the SetCapture function. After you call SetCapture for a window, the window captures mouse input that occurs while the mouse cursor remains within the window. The window also captures mouse input that occurs when the user presses a mouse button while the mouse cursor is located within the window and continues to hold the mouse button down while moving the mouse. Calling ReleaseCapture restores normal processing of mouse or stylus input.

Requirements

Header windows.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

GetCapture
SetCapture
WM_CAPTURECHANGED