Call this member function to compute the width and height of a line of text using the current font to determine the dimensions. CSize GetTextExtent( LPCTSTR lpszString, int nCount ) const; CSize GetTextExtent( const CString& str ) const; 这是获取宽和高,哪里是取多少个字符了,我用过的,但是Font不是TRUETYPE的.
dc.GetTextExtent
CSize GetTextExtent(
LPCTSTR lpszString,
int nCount
) const;
CSize GetTextExtent(
const CString& str
) const;
这是获取宽和高,哪里是取多少个字符了,我用过的,但是Font不是TRUETYPE的.
不是的 ;是 pixel