[4/4] richedit: Use the DefWindowProc to implement WM_SETREDRAW.

Dylan Smith dylan.ah.smith at gmail.com
Sun Oct 19 03:43:17 CDT 2008


DefWindowProc simply sets/clears the WS_VISIBLE flag on WM_SETREDRAW in
order to prevent redrawing the window.  I found out that native richedit
was doing this while doing a relay trace, and noticed that it was still
using InvalidateRect, UpdateWindow, ShowScrollBar, and SetScrollWindow
with fRedraw=TRUE.

All of this leads me to believe that it doesn't bother storing a value
like bRedraw, so I removed the variable.

The previous patch in this patch series is needed in order to prevent
EN_UPDATE notifications from being sent when redraw is disabled,
otherwise this patch could cause a regression.
---
 dlls/riched20/editor.c       |   24 +++++++-----------------
 dlls/riched20/editstr.h      |    1 -
 dlls/riched20/paint.c        |   30 ++++++++++--------------------
 dlls/riched20/tests/editor.c |    2 +-
 dlls/riched20/wrap.c         |   39 ++++++++++++++++++++-------------------
 5 files changed, 38 insertions(+), 58 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0004-richedit-Use-the-DefWindowProc-to-implement-WM_S.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081019/c367e848/attachment-0001.txt 


More information about the wine-patches mailing list