skip mouse events we're not interested in (e.g. mouse wheel ones) (closes #10062)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-01-25 14:45:52 +00:00
parent 40eadc76ec
commit efdd3d171c

View File

@@ -211,8 +211,11 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
int x = (int)event.GetX(),
y = (int)event.GetY();
if (GetWindowStyle() & wxSP_NOSASH)
if ( GetWindowStyle() & wxSP_NOSASH )
{
event.Skip();
return;
}
// with wxSP_LIVE_UPDATE style the splitter windows are always resized
// following the mouse movement while it drags the sash, without it we only
@@ -394,6 +397,10 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
{
OnDoubleClickSash(x, y);
}
else
{
event.Skip();
}
}
void wxSplitterWindow::OnSize(wxSizeEvent& event)