Tech Support > Microsoft Windows > Development Resources > Dimensions of TextOut
Dimensions of TextOut
Posted by Allan M on August 23rd, 2003




How do I calculate the width and height of a string that I TextOut to a
window?
It will depend on the Logical Font and the characters in the string.

Is there a function for this?

Posted by Elias Fotinis on August 23rd, 2003


Allan M wrote:
Use GetTextExtentPoint32 or a similar function.

Posted by Tim Robinson on August 23rd, 2003


GetTextExtentPoint32

--
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/

"Allan M" <allanm1@ihug.co.nz> wrote in message
news:01c36934$601f8480$48d2adcb@default...



Similar Posts