IFont::AddRefHfont method

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

hFont [in]

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 codeDescription
S_OK

The font was successfully locked in the cache.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IFont is defined as BEF6E002-A874-101A-8BBA-00AA00300CAB

See also

IFont
get_hFont
ReleaseHfont

 

 

Show: