Help Center

AfxGetWindowFontfunction

Retrieves the font with which the window or control is currently drawing its text.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxGetWindowFont (BYVAL hwnd AS HWND) AS HFONT

Parameters

NameDescription
hwndA handle to a window or control.

Return value

The handle of the font.

Description

Retrieves the font with which the window or control is currently drawing its text.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:3390
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures