blind fix for wxScrolledWindow problem

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-17 22:01:00 +00:00
parent 32a2fbc868
commit 2feed0044e

View File

@@ -168,16 +168,15 @@ void wxAutoScrollTimer::Notify()
bool wxScrollHelperEvtHandler::ProcessEvent(wxEvent& event) bool wxScrollHelperEvtHandler::ProcessEvent(wxEvent& event)
{ {
wxEventType evType = event.GetEventType(); wxEventType evType = event.GetEventType();
if ( evType == wxEVT_SIZE ) // Don't let wxPanel catch the size events. RR. if ( evType == wxEVT_SIZE )
{ {
m_scrollHelper->HandleOnSize((wxSizeEvent &)event); m_scrollHelper->HandleOnSize((wxSizeEvent &)event);
return TRUE;
} }
if ( wxEvtHandler::ProcessEvent(event) ) if ( wxEvtHandler::ProcessEvent(event) )
return TRUE; return TRUE;
// reset the skipped flag to FALSE as it might have been set to TRUE in // reset the skipped flag to FALSE as it might have been set to TRUE in
// ProcessEvent() above // ProcessEvent() above
event.Skip(FALSE); event.Skip(FALSE);