Fix scrolling to the bottom in wxTextCtrl::AppendText().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jun 2010 21:26:41 +0000 (21:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jun 2010 21:26:41 +0000 (21:26 +0000)
commit427861bde09badef1a2950ad799e69fac6b4a48a
tree3526ec917aacf69013f3e891fa9b466374f47b5d
parentc70da1a2431f5391739514d3eeffd4b3b96c4508
Fix scrolling to the bottom in wxTextCtrl::AppendText().

The old code used EM_LINESCROLL which could scroll too far if the caret wasn't
in the first line of the control. Instead of trying to compute the correct
number of the lines to scroll, just use WM_VSCROLL with SB_BOTTOM parameter
instead.

Closes #12123.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/textctrl.cpp