Share via


CDC::GetCurrentFont

 

Returns a pointer to the currently selected CFont object.

Syntax

CFont* GetCurrentFont( ) const;

Return Value

Pointer to a CFont object, if successful; otherwise NULL.

Remarks

This member function may return temporary objects.

Requirements

Header: afxwin.h

See Also

CDC Class
Hierarchy Chart
CDC::SelectObject
GetCurrentObject
CDC::GetCurrentBitmap
CDC::GetCurrentBrush
CDC::GetCurrentPalette
CDC::GetCurrentPen