| View previous topic :: View next topic |
| Author |
Message |
Mr. X Guest
|
Posted: Sat Sep 25, 2004 11:46 am Post subject: Get clipped text |
|
|
Hi
Im using the DrawTextEx function to draw clipped text to a Canvas with
DT_SINGLELINE or DT_END_ELLIPSIS etc .... as the flags
Is there a way to retrieve the actual string that is displayed on the canvas
after the clipping irrespective of the length of the original string ?
Thanks and Regards
|
|
| Back to top |
|
 |
Gary Williams Guest
|
Posted: Sat Sep 25, 2004 2:29 pm Post subject: Re: Get clipped text |
|
|
Mr. X wrote:
| Quote: | Im using the DrawTextEx function to draw clipped text to a Canvas with
DT_SINGLELINE or DT_END_ELLIPSIS etc .... as the flags
Is there a way to retrieve the actual string that is displayed on the
canvas
after the clipping irrespective of the length of the original string ?
|
Include DT_MODIFYSTRING in your Format parameter. Or inspect the
uiLengthDrawn member of the DrawTextParams parameter.
-Gary
|
|
| Back to top |
|
 |
|