Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29263 Discussions

x,y position of last character in a string?

michael_green
Beginner
388 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
388 Views
See if the Win32 API routine GetTextExtentPoint32 does what you want.
0 Kudos
Reply