ShowPosition fix to allow negative numbers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-04-06 08:29:30 +00:00
parent 21677c36c9
commit de4d7713bc

View File

@@ -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