Partager via


CWnd::SetFont

Sets the window's current font to the specified font.

void SetFont(
   CFont* pFont,
   BOOL bRedraw = TRUE 
);

Parameters

  • pFont
    Specifies the new font.

  • bRedraw
    If TRUE, redraw the CWnd object.

Remarks

If bRedraw is TRUE, the window will also be redrawn.

Requirements

Header: afxwin.h

See Also

Concepts

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::GetFont

WM_SETFONT