Returns a Windows HFONT handle for the font described by this font object.
HRESULT get_hFont(
HFONT* phfont //Pointer to the font handle
);
The method supports the standard return values E_UNEXPECTED and E_OUTOFMEMORY, as well as the following:
The font object maintains ownership of the HFONT and can destroy it at any time without prior notification. If the caller needs to secure this font for a limited period of time, it can call IFont::AddRefHfont and IFont::ReleaseHfont.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.
IFont::AddRefHfont, IFont::ReleaseHfont