]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/scrolbar.cpp
scrollbar handling simplification
[wxWidgets.git] / src / msw / scrolbar.cpp
index 20a45e346bc2962a9d01f25550b6601dc8c926ba..f46ad2fa5740645ec364a1fe49c0f0c2a266fd44 100644 (file)
@@ -157,12 +157,12 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
     int nScrollInc;
     switch ( wParam )
     {
-        case SB_BOTTOM:
+        case SB_TOP:
             nScrollInc = maxPos - position;
             scrollEvent = wxEVT_SCROLL_TOP;
             break;
 
-        case SB_TOP:
+        case SB_BOTTOM:
             nScrollInc = -position;
             scrollEvent = wxEVT_SCROLL_BOTTOM;
             break;