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:
@@ -157,12 +157,12 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
|
|||||||
int nScrollInc;
|
int nScrollInc;
|
||||||
switch ( wParam )
|
switch ( wParam )
|
||||||
{
|
{
|
||||||
case SB_BOTTOM:
|
case SB_TOP:
|
||||||
nScrollInc = maxPos - position;
|
nScrollInc = maxPos - position;
|
||||||
scrollEvent = wxEVT_SCROLL_TOP;
|
scrollEvent = wxEVT_SCROLL_TOP;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SB_TOP:
|
case SB_BOTTOM:
|
||||||
nScrollInc = -position;
|
nScrollInc = -position;
|
||||||
scrollEvent = wxEVT_SCROLL_BOTTOM;
|
scrollEvent = wxEVT_SCROLL_BOTTOM;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user