Contents Up Previous Next

wxMouseCaptureLostEvent

An mouse capture lost event is sent to a window that obtained mouse capture, which was subsequently loss due to "external" event, for example when a dialog box is shown or if another application captures the mouse.

If this happens, this event is sent to all windows that are on capture stack (i.e. called CaptureMouse, but didn't call ReleaseMouse yet). The event is not sent if the capture changes because of a call to CaptureMouse or ReleaseMouse.

This event is currently emitted 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 wxMouseCaptureLostEvent argument.

EVT_MOUSE_CAPTURE_LOST(func) Process a wxEVT_MOUSE_CAPTURE_LOST event.

See also

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

Members

wxMouseCaptureLostEvent::wxMouseCaptureLostEvent


wxMouseCaptureLostEvent::wxMouseCaptureLostEvent

wxMouseCaptureLostEvent(wxWindowID windowId = 0)

Constructor.