Returns a Windows HFONT handle for the font described by this font object.
HRESULT get_hFont(
HFONT* phfont |
//Pointer to the font handle |
); |
Parameters
Return Values
The method supports the standard return values E_UNEXPECTED and E_OUTOFMEMORY, as well as the following:
Remarks
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.
See Also
IFont::AddRefHfont, IFont::ReleaseHfont