I’m creating an owner-drawn control inherited from ListView for a Windows Mobile application. I’m using Graphics.DrawString to write out a two-line text string (using .NET CF 3.5). Problem is some items have particularly long text that doesn’t fit on the two lines. Googling has found methods for using MeasureString and to manually truncate my string, but this only works on a single-line string. Is there any way to get the ellipses here, or do I have to either accept clipped text or redesign to use only a single line? (Neither is a deal-breaker, but ellipses sure would be nice.)
I’m creating an owner-drawn control inherited from ListView for a Windows Mobile application. I’m
Share
Yes, you can get the ellipses to display, but you’ll have to do some P/Invoking (what’s new?):
NativeMethods is a class that has all of my native calls. Including: