CFontHolder::GetFontHandle

Call this member function to retrieve a handle to a Windows font.

The ratio of cyLogical and cyHimetric is used to calculate the proper display size, in logical units, for the font's point size expressed in MM_HIMETRIC units (Display size = (cyLogical / cyHimetric) * font size). The version with no parameters returns a handle to a font sized correctly for the screen.

Syntax

HFONT GetFontHandle( );

HFONT GetFontHandle( long cyLogical, long cyHimetric );

At a Glance

Header file: Afxctl.h
Platforms:
Versions: 2.0 and later
Complete documentation: Visual C++ documentation

See Also

CFontHolder Overview, CFontHolder Member Functions, ActiveX Type Wrappers