From a29ffc34c07e0408a798538b268d4733ee62965c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 9 Jul 2002 23:04:47 +0000 Subject: [PATCH] the handling of Home/End in wxScrollBar was reversed -- fixed now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/scrolbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/msw/scrolbar.cpp b/src/msw/scrolbar.cpp index 5cfec12c46..9c92f70f9e 100644 --- a/src/msw/scrolbar.cpp +++ b/src/msw/scrolbar.cpp @@ -139,13 +139,13 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam, int nScrollInc; switch ( wParam ) { - case SB_TOP: + case SB_BOTTOM: nScrollInc = maxPos - position; scrollEvent = wxEVT_SCROLL_TOP; break; - case SB_BOTTOM: - nScrollInc = - position; + case SB_TOP: + nScrollInc = -position; scrollEvent = wxEVT_SCROLL_BOTTOM; break; -- 2.45.2