CFont Class
MFC Library Reference
CFont Class
See Also
Collapse AllExpand All Language Filter: AllLanguage Filter: MultipleLanguage Filter: Visual BasicLanguage Filter: C#Language Filter: C++Language Filter: J#Language Filter: JScript
Encapsulates a Windows graphics device interface (GDI) font and provides member functions for manipulating the font.
封装了一个Windows图形设备接口(GDI)字体并为操作提供了成员函数。
class CFont : public CGdiObject
Remarks
备注
To use a CFont object, construct a CFont object and attach a Windows font to it withCreateFont, CreateFontIndirect,CreatePointFont, or CreatePointFontIndirect, and then use the object’s member functions to manipulate the font.
CFont的使用,CreateFont,CreateFontIndirect,CreatePointFont,或CreatePointFontIndirect构造一个CFont对象,然后使用对象的成员函数来操纵的字体。
The CreatePointFont and CreatePointFontIndirect functions are often easier to use thanCreateFont or CreateFontIndirect since they do the conversion for the height of the font from a point size to logical units automatically
CreatePointFont和CreatePointFontIndirect函数往往比CreateFont或CreateFontIndirect更容易使用,因为他们执行转换从一个点字体的高度尺寸到自动逻辑单元。.
For more information on CFont, see Graphic Objects.
CFont的更多信息,请参见图形对象。
Requirements
要求
Header: afxwin.h
头文件: afxwin.h
See Also
Tasks
HIERSVR Sample: Demonstrates a Server Application with OLE Drag and Drop
Reference
CGdiObject Class
Hierarchy Chart
Other Resources
CFont Members
To make a suggestion or report a bug about Help or another feature of this product, go to thefeedback site.
本人英语水平不好,如翻译有误请留言告知本人,在此先行致谢。