]> git.saurik.com Git - wxWidgets.git/commitdiff
re-reversed SB_TOP/BOTTOM undoing rev 1.21 change (still no idea why was it done)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 May 2006 15:17:08 +0000 (15:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 May 2006 15:17:08 +0000 (15:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 )
     {
     int nScrollInc;
     switch ( wParam )
     {
-        case SB_BOTTOM:
+        case SB_TOP:
             nScrollInc = maxPos - position;
             scrollEvent = wxEVT_SCROLL_TOP;
             break;
 
             nScrollInc = maxPos - position;
             scrollEvent = wxEVT_SCROLL_TOP;
             break;
 
-        case SB_TOP:
+        case SB_BOTTOM:
             nScrollInc = -position;
             scrollEvent = wxEVT_SCROLL_BOTTOM;
             break;
             nScrollInc = -position;
             scrollEvent = wxEVT_SCROLL_BOTTOM;
             break;