]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/scrolbar.cpp
Better fix
[wxWidgets.git] / src / msw / scrolbar.cpp
index ea7ab3a86967699bff09b0e86a761fcb0ead5257..a3868bbb021bc42dca8200a7f81dc50a34045e18 100644 (file)
 
 #if wxUSE_SCROLLBAR
 
 
 #if wxUSE_SCROLLBAR
 
+#include "wx/scrolbar.h"
+
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/settings.h"
 #endif
 
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/settings.h"
 #endif
 
-#include "wx/scrolbar.h"
 #include "wx/msw/private.h"
 
 #if wxUSE_EXTENDED_RTTI
 #include "wx/msw/private.h"
 
 #if wxUSE_EXTENDED_RTTI
@@ -230,7 +231,7 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
     event.SetPosition(position);
     event.SetEventObject( this );
 
     event.SetPosition(position);
     event.SetEventObject( this );
 
-    return GetEventHandler()->ProcessEvent(event);
+    return HandleWindowEvent(event);
 }
 
 void wxScrollBar::SetThumbPosition(int viewStart)
 }
 
 void wxScrollBar::SetThumbPosition(int viewStart)