Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Sat Apr 20 11:49:39 CEST 2024

Total time taken to generate the page: 0.04079 seconds