Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message is sent to the window losing the capture.

Syntax

		
WM_CAPTURECHANGED 
		
hwndNewCapture =
 (HWND)
lParam;

Parameters

hwndNewCapture

Handle to the window gaining the mouse capture.

Return Value

An application should return zero if it processes this message.

Remarks

A window receives this message even if the window calls ReleaseCaptureitself. An application should not attempt to set the mouse capture in response to this message.

When a window receives this message, the window should redraw itself to reflect the new mouse-capture state, if necessary.

Requirements

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

See Also