This member function computes 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;
object.
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CDC Overview, CDC Member Functions, Graphical Drawing Classes, CDC::m_hAttribDC, CDC::m_hDC, CDC::GetOutputTextExtent, CSize