Skip to content

Latest commit

 

History

History
92 lines (56 loc) · 2.03 KB

wm-capturechanged.md

File metadata and controls

92 lines (56 loc) · 2.03 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
WM_CAPTURECHANGED message (Winuser.h)
Sent to the window that is losing the mouse capture.
79c8f65e-31fa-4bdb-9e88-0160a52b5b7d
WM_CAPTURECHANGED message Keyboard and Mouse Input
apiref
WM_CAPTURECHANGED
Winuser.h
HeaderDef
reference
05/31/2018

WM_CAPTURECHANGED message

Sent to the window that is losing the mouse capture.

A window receives this message through its WindowProc function.

#define WM_CAPTURECHANGED               0x0215

Parameters

wParam

This parameter is not used.

lParam

A 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 it calls ReleaseCapture itself. An application should not attempt to set the mouse capture in response to this message.

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

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

ReleaseCapture

SetCapture

Conceptual

Mouse Input