CFont::operator HFONT

operator HFONT( ) const;

Return Value

The handle of the Windows GDI font object attached to CFont if successful; otherwise NULL.

Remarks

Use this operator to get the Windows GDI handle of the font attached to the CFont object.

Since this operator is automatically used for conversions from CFont to Fonts and Text, you can pass CFont objects to functions that expect HFONTs.

For more information about using graphic objects, see Graphic Objects in the Win32 SDK documentation.

CFont OverviewClass MembersHierarchy Chart