From: Julian Smart Date: Tue, 6 Apr 1999 08:29:30 +0000 (+0000) Subject: ShowPosition fix to allow negative numbers X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/de4d7713bc86b4cd8444fd48ea882a67273f1d03 ShowPosition fix to allow negative numbers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 63bcc632f2..9d5a411fdb 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -709,7 +709,7 @@ void wxTextCtrl::ShowPosition(long pos) int linesToScroll = specifiedLineLineNo - currentLineLineNo; if (linesToScroll != 0) - (void)SendMessage(hWnd, EM_LINESCROLL, (WPARAM)0, (LPARAM)MAKELPARAM(linesToScroll, 0)); + (void)SendMessage(hWnd, EM_LINESCROLL, (WPARAM)0, (LPARAM)linesToScroll); } int wxTextCtrl::GetLineLength(long lineNo) const