fix mouse capture lost assert when dialog shown in tab change event handler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams 2008-08-03 13:58:08 +00:00
parent 4af4dec65f
commit 45ca0e7750
2 changed files with 6 additions and 0 deletions

View File

@ -474,6 +474,7 @@ protected:
void OnSetFocus(wxFocusEvent& event);
void OnKillFocus(wxFocusEvent& event);
void OnChar(wxKeyEvent& event);
void OnCaptureLost(wxMouseCaptureLostEvent& evt);
protected:

View File

@ -2191,6 +2191,7 @@ BEGIN_EVENT_TABLE(wxAuiTabCtrl, wxControl)
EVT_SET_FOCUS(wxAuiTabCtrl::OnSetFocus)
EVT_KILL_FOCUS(wxAuiTabCtrl::OnKillFocus)
EVT_CHAR(wxAuiTabCtrl::OnChar)
EVT_MOUSE_CAPTURE_LOST(wxAuiTabCtrl::OnCaptureLost)
END_EVENT_TABLE()
@ -2273,6 +2274,10 @@ void wxAuiTabCtrl::OnLeftDown(wxMouseEvent& evt)
}
}
void wxAuiTabCtrl::OnCaptureLost(wxMouseCaptureLostEvent& WXUNUSED(event))
{
}
void wxAuiTabCtrl::OnLeftUp(wxMouseEvent& evt)
{
if (GetCapture() == this)