]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/scrolbar.cpp
Remove the long obsolete and unused since 2.7.0 __WIN95__ define.
[wxWidgets.git] / src / os2 / scrolbar.cpp
index 88906bdef78e0db2ece03fbaa4a80de5606d819a..ed01ed5c964252a9065a2be7a95d9d13f30cdb12 100644 (file)
 // 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 )