richedit: Made sure text is offset by formatting rectangle.
commit297716e01ca8c58f2ed400da1437b02fb420448a
authorDylan Smith <dylan.ah.smith@gmail.com>
Thu, 18 Dec 2008 06:56:49 +0000 (18 01:56 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 18 Dec 2008 13:19:40 +0000 (18 14:19 +0100)
treec293b7c445b9e65e255e1a621e996f0d8e4df586
parentced9bde4c034661eba0016ecd3b5a557ee40f6ef
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
dlls/riched20/editor.c
dlls/riched20/editstr.h
dlls/riched20/paint.c
dlls/riched20/run.c
dlls/riched20/tests/editor.c
dlls/riched20/wrap.c