X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d879e16fc3e77b5c975040d1d13b9c93fd4f0123..57cc93eb59cc89992eb136015979effbaa0dd43e:/src/os2/scrolbar.cpp diff --git a/src/os2/scrolbar.cpp b/src/os2/scrolbar.cpp index 88906bdef7..a89d53de3e 100644 --- a/src/os2/scrolbar.cpp +++ b/src/os2/scrolbar.cpp @@ -12,11 +12,12 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#include "wx/scrolbar.h" + #ifndef WX_PRECOMP #include "wx/utils.h" #endif -#include "wx/scrolbar.h" #include "wx/os2/private.h" IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl) @@ -224,7 +225,7 @@ bool wxScrollBar::OS2OnScroll ( int WXUNUSED(nOrientation), vEvent.SetOrientation(IsVertical() ? wxVERTICAL : wxHORIZONTAL); vEvent.SetPosition(nPosition); vEvent.SetEventObject(this); - return GetEventHandler()->ProcessEvent(vEvent); + return HandleWindowEvent(vEvent); } // end of wxScrollBar::OS2OnScroll void wxScrollBar::SetThumbPosition ( int nViewStart )