다음을 통해 공유


CFontHolder::InitializeFont

Initializes a CFontHolder object.

void InitializeFont(
   const FONTDESC* 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

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.

Requirements

Header: afxctl.h

See Also

Reference

CFontHolder Class

Hierarchy Chart

CFontHolder::CFontHolder

Other Resources

CFontHolder Members