CFontHolder::InitializeFont

void InitializeFont( const FONTDESC FAR* pFontDesc = NULL, LPDISPATCH pFontDispAmbient = NULL );

Parameters

pFontDesc

Pointer to a font description structure (FONTDESC) that specifies the font’s characteristics.

pFontDispAmbient

Pointer to the container’s ambient Font property.

Remarks

Initializes a CFontHolder object.

If pFontDispAmbient is not NULL, the CFontHolder object is connected to a clone of the IFont interface used by the container’s ambient Font property.

If pFontDispAmbient is NULL, a new Font object is created either from the font description pointed to by pFontDesc or, if pFontDesc is NULL, from a default description.

Call this function after constructing a CFontHolder object.

CFontHolder OverviewClass MembersHierarchy Chart

See Also   CFontHolder::CFontHolder