Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>gettextextent</b> get width and height of a line of text http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetTextExtent        Get Width and Height of A Line of Text

DWORD GetTextExtent(hDC, lpString, nCount)
HDC hDC;
LPSTR lpString;
short nCount; /* strlen(lpString) */

Returns:    Height in high word, width in low word.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson