re-reversed SB_TOP/BOTTOM undoing rev 1.21 change (still no idea why was it done)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-06 15:17:08 +00:00
parent f028b0d919
commit 97ca4fe477

View 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;