#include </home/zeitlin/src/wx/github/interface/wx/event.h>
An mouse capture changed event is sent to a window that loses its mouse capture.
This is called even if wxWindow::ReleaseMouse 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.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros:
wxEVT_MOUSE_CAPTURE_CHANGED
event. Public Member Functions | |
wxMouseCaptureChangedEvent (wxWindowID windowId=0, wxWindow *gainedCapture=NULL) | |
Constructor. | |
wxWindow * | GetCapturedWindow () const |
Returns the window that gained the capture, or NULL if it was a non-wxWidgets window. |
wxMouseCaptureChangedEvent::wxMouseCaptureChangedEvent | ( | wxWindowID | windowId = 0 , |
wxWindow * | gainedCapture = NULL |
||
) |
Constructor.
wxWindow* wxMouseCaptureChangedEvent::GetCapturedWindow | ( | ) | const |
Returns the window that gained the capture, or NULL if it was a non-wxWidgets window.