• Dylan Smith's avatar
    richedit: Made sure text is offset by formatting rectangle. · 297716e0
    Dylan Smith authored
    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.
    297716e0
paint.c 42.8 KB