textwidth This function is used to get the width of a string or character. int textwidth(LPCTSTR str); int textwidth(TCHAR c); Parameters str A string. c A character. Return Value The actual width of a string or character. Examples None