Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message is sent by an application to a control to retrieve the font with which the control is currently drawing its text.

Syntax

WM_GETFONT 
wParam = 0; 

lParam = 0;

Parameters

wParam

Not used.

lParam

Not used.

Return Value

The return value is a handle to the font used by the control, or NULL if the control is using the system font.

Remarks

The WM_GETFONT message does not return a font handle if the message is sent to a dialog box created by the DialogBoxParam, DialogBoxIndirectParam, CreateDialogParam, or CreateDialogIndirectParamfunction.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also