textwidth

The function is used to gets the width of the pixel that the string actually occupies.

int textwidth(LPCTSTR str);
int textwidth(TCHAR c);

Parameters

str

The specified string pointer.

c

The specified character.

Return Value

The width of the pixel that the string actually occupies.

Examples

None