X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d879e16fc3e77b5c975040d1d13b9c93fd4f0123..04fa04d8067d235ab45b5bc05b65f0679634b541:/src/os2/scrolbar.cpp diff --git a/src/os2/scrolbar.cpp b/src/os2/scrolbar.cpp index 88906bdef7..ed01ed5c96 100644 --- a/src/os2/scrolbar.cpp +++ b/src/os2/scrolbar.cpp @@ -12,15 +12,14 @@ // 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) - // Scrollbar bool wxScrollBar::Create(wxWindow* pParent, wxWindowID vId, @@ -224,7 +223,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 )