WM\_GETFONT message
July 15, 2025 · View on GitHub
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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Header |
|
See also
-
Reference
-
Conceptual