## wxMouseCaptureChangedEvent

An mouse capture changed event is sent to a window that loses its mouse capture. This is called even if wxWindow::ReleaseCapture was called by the application code. Handling this event allows an application to cater for unexpected capture releases which might otherwise confuse mouse handling code.

This event is implemented under Windows only.

Derived from

wxEvent
wxObject

Include files

<wx/event.h>

Event table macros

To process this event, use the following event handler macro to direct input to a member function that takes a wxMouseCaptureChangedEvent argument.

EVT_MOUSE_CAPTURE_CHANGED(func) | Process a wxEVT_MOUSE_CAPTURE_CHANGED event.

See also

Event handling overview, wxWindow::CaptureMouse, wxWindow::ReleaseMouse, wxWindow::GetCapture

Members

wxMouseCaptureChangedEvent::wxMouseCaptureChangedEvent
wxActivateEvent::GetCapturedWindow

### wxMouseCaptureChangedEvent::wxMouseCaptureChangedEvent

wxMouseCaptureChangedEvent(wxWindowID windowId = 0, wxWindow* gainedCapture = NULL)

Constructor.

### wxActivateEvent::GetCapturedWindow

wxWindow* GetCapturedWindow() const

Returns the window that gained the capture, or NULL if it was a non-wxWidgets window.