Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WM_GETFONT message

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


#define WM_GETFONT                      0x0031

Parameters

wParam

This parameter is not used and must be zero.

lParam

This parameter is not used and must be zero.

Return value

Type: HFONT

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
WM_SETFONT
Conceptual
Windows

 

 

Show:
© 2017 Microsoft