Share via


COleControl::SelectFontObject

Selects a font into a device context.

CFont* SelectFontObject(
   CDC* pDC,
   CFontHolder& fontHolder 
);

Parameters

  • pDC
    Pointer to a device context object.

  • fontHolder
    Reference to the CFontHolder object representing the font to be selected.

Return Value

A pointer to the previously selected font. When the caller has finished all drawing operations that use fontHolder, it should reselect the previously selected font by passing it as a parameter to CDC::SelectObject.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

Other Resources

COleControl Members