IFont::get_hFont method (ocidl.h)
Retrieves a handle to the font described by this font object.
HRESULT get_hFont( [out] HFONT *phFont );
A pointer to the caller-allocated variable that receives the font handle. The caller does not own this resource and must not attempt to destroy the font.
The method supports the standard return values E_UNEXPECTED and E_OUTOFMEMORY, as well as the following values.
||The font handle was retrieved successfully.|
||The address in the phFont parameter is not valid. For example, it may be NULL.|
RemarksIFont::AddRefHfont and IFont::ReleaseHfont.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|