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.
HFONT GetFontHandle( );
HFONT GetFontHandle( long cyLogical, long cyHimetric );
Header file: | Afxctl.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
CFontHolder Overview, CFontHolder Member Functions, ActiveX Type Wrappers