IFont::AddRefHfont method (ocidl.h)
Notifies the font object that the previously realized font identified with hFont should remain valid until ReleaseHfont is called or the font object itself is released completely.
Syntax
HRESULT AddRefHfont(
[in] HFONT hFont
);
Parameters
[in] hFont
Font handle previously realized through get_hFont to be locked in the font object's cache.
Return value
The method supports the standard return values E_UNEXPECTED and E_INVALIDARG, as well as the following values.
Return code | Description |
---|---|
|
The font was successfully locked in the cache. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |