Partager via


CFont Members

Base Class Members

CObject Members

CGdiObject Members

Construction

CFont

Constructs a CFont object.

Initialization

CreateFont

Initializes a CFont with the specified characteristics.

CreateFontIndirect

Initializes a CFont object with the characteristics given in a LOGFONT structure.

CreatePointFont

Initializes a CFont with the specified height, measured in tenths of a point, and typeface.

CreatePointFontIndirect

Same as CreateFontIndirect except that the font height is measured in tenths of a point rather than logical units.

Operations

FromHandle

Returns a pointer to a CFont object when given a Windows HFONT.

Attributes

GetLogFont

Fills a LOGFONT with information about the logical font attached to the CFont object.

operator HFONT

Returns the Windows GDI font handle attached to the CFont object.

See Also

Concepts

CFont Class

Hierarchy Chart