U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Best implementation of text clipping?
Best implementation of text clipping? [message #3577] Fri, 02 June 2006 17:21 Go to previous message
James Thomas is currently offline  James Thomas
Messages: 26
Registered: June 2006
Promising Member
I'm converting some complicated drawing code that I originally wrote with native Win32 API calls. The problem is that I made extensive use of the clipping functionality of ExtTextOut (setting ETO_CLIPPED and passing in a RECT). This was partly to avoid text overlapping other areas but also because it allowed easy text alignment within the rectangle.

I have't been able to find any calls to ExtTextOut in the Draw source code that pass anything other than 0 for the flags and NULL for the RECT structure, so I assume this functionality is not directly supported. Can someone suggest a straightforward and efficient way of doing this? Drawing the text then clipping it by drawing over it is not an option unfortunately.

Thanks in advance.
 
Read Message
Read Message
Previous Topic: Icon for .exe file in Windows Explorer
Next Topic: Why there is no BI_JPEG or BI_PNG in ImageWin32.cpp?
Goto Forum:
  


Current Time: Tue Apr 28 22:57:09 GMT+2 2026

Total time taken to generate the page: 0.00972 seconds