virtual void DoSetWindowVariant( wxWindowVariant variant ) ;
// Must be called when mouse capture is lost to send
- // wxMouseCaptureLostEvent to windows on capture stack. The argument is
- // the window gaining capture or NULL if outside of wx code or none.
- static void NotifyCaptureLost(wxWindow *gainedCapture);
+ // wxMouseCaptureLostEvent to windows on capture stack.
+ static void NotifyCaptureLost();
private:
// contains the last id generated by NewControlId
}
/* static */
-void wxWindowBase::NotifyCaptureLost(wxWindow *gainedCapture)
+void wxWindowBase::NotifyCaptureLost()
{
// don't do anything if capture lost was expected, i.e. resulted from
// a wx call to ReleaseMouse or CaptureMouse:
bool wxWindowMSW::HandleCaptureChanged(WXHWND hWndGainedCapture)
{
- wxWindow *win = wxFindWinFromHandle(hWndGainedCapture);
-
// notify windows on the capture stack about lost capture
// (see http://sourceforge.net/tracker/index.php?func=detail&aid=1153662&group_id=9863&atid=109863):
- wxWindowBase::NotifyCaptureLost(win);
+ wxWindowBase::NotifyCaptureLost();
+ wxWindow *win = wxFindWinFromHandle(hWndGainedCapture);
wxMouseCaptureChangedEvent event(GetId(), win);
event.SetEventObject(this);
return GetEventHandler()->ProcessEvent(event);