Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


Call this member function to copy the typeface name of the current font into a buffer.

int GetTextFace( 
   int nCount, 
   LPTSTR lpszFacename  
) const; 
int GetTextFace( 
   CString& rString  
) const;

Specifies the size of the buffer (in bytes). If the typeface name is longer than the number of bytes specified by this parameter, the name is truncated.


Points to the buffer for the typeface name.


A reference to a CString object.

The number of bytes copied to the buffer, not including the terminating null character. It is 0 if an error occurs.

The typeface name is copied as a null-terminated string.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.