다음을 통해 공유


CWnd::GetFont

Sends the WM_GETFONT message to the window to retrieve the current font.

CFont* GetFont( ) const;

Return Value

Pointer to a CFont object that is attached to the current font for the window.

Remarks

This method has no effect unless the window processes the WM_GETFONT 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_GETFONT message. To use this method, classes that you derive from CWnd must define a method handler for the WM_GETFONT message.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

CWnd::SetFont

WM_GETFONT

CFont Class

Concepts

CWnd Members