richedit: Handle deletion at the end of text properly. (Fixes Bug 14250)
dylan.ah.smith at gmail.com
Wed Sep 17 21:02:08 CDT 2008
In reporting this bug I noticed that nPos (the scoll position) was being
stored internally. Alex Villacís Lasso noticed other scrollbar info
being stored internally by the richedit control, however his changes
didn't include using an internal copy of nPos. So I continued this
The behaviour noticed in native richedit is that deleting text at the
end of the richedit control does not cause the text to be scrolled
unless less than a page of text remains. This is why the internal copy
of nPos is needed, since the scroll position can remain past the limit
imposed by nMax when nMax is reduced by deleting text.
This fixes bug 14250 by avoiding the scrolling on deleting text while
the scrollbar remains.
dlls/riched20/paint.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the wine-patches