Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextExtent for formatted text

Status
Not open for further replies.

TimSNL

Programmer
Sep 11, 2001
119
AU
Hello

I have some formatted text in a rich text memo.
I need to find the height of this text in pixels so I can resize another component to the correct height before I copy the text over.
If the text was not formatted, I could have used TextExtent to find the height.
Does anyone know how to get the height of this formatted text?

I am using the EM_FORMATRANGE message to copy the formatted text onto the control where I need it to be, but I don't think I can use this to get the height I am after.

Thanks for your help,
Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top