1. 09 May, 2012 1 commit
  2. 08 May, 2012 1 commit
  3. 24 Oct, 2011 2 commits
  4. 30 Jul, 2010 1 commit
    • Dylan Smith's avatar
      richedit: Avoid redundant calls to ME_CalcRunExtent. · c0ee555e
      Dylan Smith authored
      ME_SplitRun is only called by wrapping code. In all but one call the
      returned second half of the split run will be returned, get passed back
      to ME_WrapHandleRun, then ME_CalcRunExtent will be called at the start of
      ME_WrapHandleRun through ME_WrapSizeRun.
      c0ee555e
  5. 29 Jul, 2010 2 commits
  6. 25 May, 2010 1 commit
  7. 03 May, 2010 1 commit
  8. 01 Mar, 2010 1 commit
    • Dylan Smith's avatar
      richedit: Documented paragraph border widths are in points not pixels. · 1f2575ba
      Dylan Smith authored
      The border widths documented by msdn are in points which are 72 dpi, which
      is not equivalent to pixels (normally 96 dpi). I pre-converted all the
      border widths to 96 dpi resolution since this avoids needed to store
      fractions, and often avoids the need for convertion to the displays
      resolution.
      1f2575ba
  9. 10 Feb, 2010 1 commit
  10. 05 Feb, 2010 1 commit
  11. 28 Sep, 2009 1 commit
    • Dylan Smith's avatar
      richedit: Use ITextHost interface in ME_LinkNotify. · 0342ab0d
      Dylan Smith authored
      Using the ITextHost interface allows this notification to be received
      for windowless richedit controls.  Windowed richedit conrols have an
      ITextHost implementation that will fill in hwndFrom and idFrom, but
      these should probably be initialized to 0 for windowless richedit
      controls.
      0342ab0d
  12. 11 Mar, 2009 1 commit
    • Dylan Smith's avatar
      richedit: Count graphics towards line width. · 1a2ccfe9
      Dylan Smith authored
      Images that are inserted into richedit controls store a space for the
      text, since that is the character returned when getting the plain text
      from the control.
      
      When calculating the width of a line, the space character is skipped,
      but images should not be skipped.  This can be seen by inserting an
      image into wordpad on a line by it's own, then centering the line.  The
      image will start from the center rather than being centered in the
      control.
      1a2ccfe9
  13. 09 Feb, 2009 2 commits
    • Dylan Smith's avatar
      richedit: Removed ME_StrRelPos, ME_StrRelPos2, & ME_PosToVPos functions. · c8b44555
      Dylan Smith authored
      These functions were just being used for addition, so it was simpler to
      remove the functions and modify the places it was used.
      
      The ME_StrRelPos2 and ME_PosToVPos were just simple wrappers around
      ME_StrRelPos, and ME_PosToVPos wasn't being used.
      c8b44555
    • Dylan Smith's avatar
      richedit: Removed ME_StrLen and ME_StrVLen field access functions. · 5f15de06
      Dylan Smith authored
      These functions were probably previously needed because of some wierd
      special handling of backspace characters, but currently there is no
      reason why the nLen field can't be accessed directly.
      
      Having to functions that just access the string length field just causes
      slightly more effort for someone to look at the code, because they need
      to enter the function to find out what it actually is doing.
      5f15de06
  14. 06 Feb, 2009 1 commit
  15. 02 Feb, 2009 1 commit
  16. 21 Jan, 2009 1 commit
    • Dylan Smith's avatar
      richedit: Used ITextHost methods to avoid using window handle directly. · 05c788ac
      Dylan Smith authored
      The methods in ITextHost are mostly thin wrappers around functions that
      take a handle to a window as their first parameter.  This patch just
      uses the wrapper functions provided by ITextHost instead of using the
      functions that require a handle to a window that the editor might now
      have (for windowless richedit controls).
      05c788ac
  17. 15 Jan, 2009 1 commit
  18. 20 Dec, 2008 2 commits
  19. 18 Dec, 2008 1 commit
    • 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
  20. 20 Oct, 2008 1 commit
  21. 13 Oct, 2008 2 commits
  22. 06 Oct, 2008 1 commit
    • Dylan Smith's avatar
      richedit: Removed invalid assertion. · 930f8f5a
      Dylan Smith authored
      The assertion was not valid, because it neglected to take into account
      the situation where a line break is forced with a MERF_ENDROW run
      (caused by \line control word or pressing Shift-Enter).  This means
      that spaces can cause a line wrap after a forced line break as well as
      after a paragraph break, so we cannot assert that it is the first row
      in the paragraph.
      930f8f5a
  23. 02 Sep, 2008 1 commit
  24. 18 Aug, 2008 4 commits
  25. 18 Jul, 2008 1 commit
  26. 10 Jul, 2008 4 commits
  27. 25 Jun, 2008 1 commit
  28. 24 Jun, 2008 1 commit
  29. 05 May, 2008 1 commit