Freigeben über


CFontHolder::Select

Call this function to select your control's font into the specified device context.

CFont* Select(
   CDC* pDC,
   long cyLogical,
   long cyHimetric 
);

Parameters

  • pDC
    Device context into which the font is selected.

  • cyLogical
    Height, in logical units, of the rectangle in which the control is drawn.

  • cyHimetric
    Height, in MM_HIMETRIC units, of the control.

Return Value

A pointer to the font that is being replaced.

Remarks

See GetFontHandle for a discussion of the cyLogical and cyHimetric parameters.

Requirements

Header: afxctl.h

See Also

Concepts

CFontHolder Class

CFontHolder Members

Hierarchy Chart