- 09 May, 2012 1 commit
-
-
Dylan Smith authored
-
- 08 May, 2012 1 commit
-
-
Dylan Smith authored
-
- 24 Oct, 2011 2 commits
-
-
Thomas Faber authored
-
Thomas Faber authored
-
- 30 Jul, 2010 1 commit
-
-
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.
-
- 29 Jul, 2010 2 commits
-
-
Dylan Smith authored
The only place MERF_SKIPPED was in debug code, and MERF_CALCBYWRAP was only used to clear this unused flag value, so I got rid of both of them.
-
Dylan Smith authored
-
- 25 May, 2010 1 commit
-
-
Dylan Smith authored
-
- 03 May, 2010 1 commit
-
-
Gerald Pfeifer authored
-
- 01 Mar, 2010 1 commit
-
-
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.
-
- 10 Feb, 2010 1 commit
-
-
Dylan Smith authored
-
- 05 Feb, 2010 1 commit
-
-
Dylan Smith authored
-
- 28 Sep, 2009 1 commit
-
-
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.
-
- 11 Mar, 2009 1 commit
-
-
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.
-
- 09 Feb, 2009 2 commits
-
-
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.
-
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.
-
- 06 Feb, 2009 1 commit
-
-
Dylan Smith authored
More case of searching for the paragraph through the linked list when is was already previously available. Since each wrap context is used for wrapping each paragraph, I decided to add the reference to the paragarph in the structure.
-
- 02 Feb, 2009 1 commit
-
-
Dylan Smith authored
The width for EM_SETTARGETDEVICE is used by some applications to set the wrapping width to a certain distance in twips. This can be used even though the target device is ignored.
-
- 21 Jan, 2009 1 commit
-
-
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).
-
- 15 Jan, 2009 1 commit
-
-
Dylan Smith authored
-
- 20 Dec, 2008 2 commits
-
-
Dylan Smith authored
When the text is wrapped, the positions for all the runs, paragraphs, and cells are already calculated and stored. The only thing left to do for painting is to offset them by the formatting rectangle and the scroll position.
-
Dylan Smith authored
During wrapping there were three different heights that were being stored, with only one of them being done correctly. The other ones failed to incorporate the height of the paragraph or row, so ended up being incorrect.
-
- 18 Dec, 2008 1 commit
-
-
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.
-
- 20 Oct, 2008 1 commit
-
-
Dylan Smith authored
-
- 13 Oct, 2008 2 commits
-
-
Dylan Smith authored
-
Dylan Smith authored
-
- 06 Oct, 2008 1 commit
-
-
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.
-
- 02 Sep, 2008 1 commit
-
-
Dylan Smith authored
-
- 18 Aug, 2008 4 commits
-
-
Dylan Smith authored
-
Dylan Smith authored
-
Dylan Smith authored
-
Dylan Smith authored
-
- 18 Jul, 2008 1 commit
-
-
Dylan Smith authored
-
- 10 Jul, 2008 4 commits
-
-
Dylan Smith authored
The uncommon case that this patch handles is enough whitespace being on the first line of a paragraph to cause it to wrap. In this case the first non-space character will be wrapped onto the next line.
-
Dylan Smith authored
Runs that are skipped over still need to affect the wrapping position, otherwise they won't affect further run positions.
-
Dylan Smith authored
-
Dylan Smith authored
Lines in ME_WrapHandleRun were removed because ME_CalcRunExtent is already called unconditionally just before it in the call to ME_WrapSizeRun.
-
- 25 Jun, 2008 1 commit
-
-
Dylan Smith authored
-
- 24 Jun, 2008 1 commit
-
-
Alex Villacís Lasso authored
Add tests for EM_POSFROMCHAR for 1.0 and 2.0.
-
- 05 May, 2008 1 commit
-
-
Dylan Smith authored
-