[1/2] richedit: Scroll up with less than page of text with ES_DISABLENOSCROLL.

Dylan Smith dylan.ah.smith at gmail.com
Mon Jan 5 12:14:18 CST 2009


When there is less than a page of text, the richedit control scrolls up
to the top of the text regardless of whether the ES_DISABLENOSCROLL
style is used or not.

This can be tested by:
1. Adding the ES_DISABLENOSCROLL style to wine's wordpad
2. Run wordpad
3. Enter more than a page of text
4. Select from the first page of text to the end of the text
5. Delete

The text should be scrolled to the top of the text as done by native
richedit controls, but instead was being scrolled just enough to show
the cursor.  This patch fixes this bug.
---
 dlls/riched20/paint.c |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Scroll-up-with-less-than-page-of-text-w.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20090105/bf380217/attachment.txt 


More information about the wine-patches mailing list