Dylan Smith : richedit: Made sure text is offset by formatting rectangle.

Alexandre Julliard julliard at winehq.org
Thu Dec 18 08:08:57 CST 2008


Module: wine
Branch: master
Commit: 297716e01ca8c58f2ed400da1437b02fb420448a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=297716e01ca8c58f2ed400da1437b02fb420448a

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Thu Dec 18 01:56:49 2008 -0500

richedit: Made sure text is offset by formatting rectangle.

The formatting rectangle is set with EM_SETRECT, and retrieved with
EM_GETRECT, so it corresponds to rcFormat in the code.  This defines the
area that the richedit control should draw the text so that it is
offset by the top-left corner of the formatting rectangle, and clipped
so that it doesn't draw past the bottom or right hand side.  Thus this
is important for implementing windowless richedit controls to not
interfere with the rest of the window.

---

 dlls/riched20/caret.c        |   17 +++---
 dlls/riched20/editor.c       |  135 ++++++++++++++++++++++++++++++++++-------
 dlls/riched20/editstr.h      |    4 +-
 dlls/riched20/paint.c        |  103 +++++++++++++++++++-------------
 dlls/riched20/run.c          |    2 +-
 dlls/riched20/tests/editor.c |   33 ++++------
 dlls/riched20/wrap.c         |   24 ++++----
 7 files changed, 211 insertions(+), 107 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=297716e01ca8c58f2ed400da1437b02fb420448a



More information about the wine-cvs mailing list