Click to See Complete Forum and Search --> : Text's size


Alex Varet
May 20th, 1999, 02:39 AM
I'm looking how to calculate the size of a text in Pixels under VC++ 1.52 because the functions GetTextExtentExPoint( ... ) and
GetTextExtentExPoint32( ... ) don't match. I try with the variables tmAveCharWidth or tmMaxCharWidth of TEXTMETRIC but it's give me only a approximation.

Please help me

Thanks

Jason Teagle
May 20th, 1999, 02:45 AM
In VC++ 1.52, it's called just GetTextExtent(). It works the same as GetTextExtentPoint32().

I ought to point out that if you had used the MFC version of the function, it is called GetTextExtent() in both compilers. There are some advantages to MFC!