Change the way that DrawText parses the next line to display, ready to
commit7af9098f6b838ad170b9617cf330ad45de479420
authorBill Medland <medbi01@accpac.com>
Tue, 19 Feb 2002 18:25:53 +0000 (19 18:25 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 19 Feb 2002 18:25:53 +0000 (19 18:25 +0000)
tree75ef19f8f3ff5b78d469bcbfa7e226064889b011
parent0e3c9d454bc32e7cbd7daf2d3524627428a8d012
Change the way that DrawText parses the next line to display, ready to
support multiline ellipsification etc.  Rather than measuring the text
each time we add a character and breaking once it is too long and
WORDBREAK is enabled, we copy a whole text segment and then measure
it; GetTextExtentPointEx is designed to tell us how much fitted.  This
may result in a little rescanning if wordbreak is enabled but will be
well worth while when multiline path ellipsification is brought down
into the NextLine function.  Note also that the wordbreak calculation
is a little more complete (e.g.  including break-within-word for
DT_EDITCONTROL).
dlls/user/text.c