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
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