x,y position of last character in a string?

x,y position of last character in a string?

Hi,

I need to be able to determine the x,y position on screen of the last character in a text string - preferably the right hand end of it. If I know the string's starting x,y position and all the text attributes (font, weight, italic, etc) is there some magic function by which I can determine this value?

With many thanks in advance,

Mike

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

See if the Win32 API routine GetTextExtentPoint32 does what you want.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today