Partager via


CWindow::SetFont

Changes the window's current font by sending a WM_SETFONT message to the window.

void SetFont( 
   HFONT hFont, 
   BOOL bRedraw = TRUE  
) throw();

Parameters

  • hFont
    [in] The handle to the new font.

  • bRedraw
    [in] If TRUE (the default value), the window is redrawn. Otherwise, it is not.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetFont