Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Sends the WM_SETFONT message to the window to use the specified font.
void SetFont(
   CFont* pFont,
   BOOL bRedraw = TRUE 
);
Parameters
pFont
Pointer to a CFont object.bRedraw
TRUE for the window to redraw immediately after it processes the WM_SETFONT message; otherwise FALSE.
Remarks
This method has no effect unless the window processes the WM_SETFONT message. Many MFC classes that derive from CWnd process this message because they are attached to a predefined window class that includes a message handler for the WM_SETFONT message. To use this method, classes that you derive from CWnd must define a method handler for the WM_SETFONT message.
Requirements
Header: afxwin.h