CWindow.Fontproperty
Gets/sets the font used as default.
Syntax
PROPERTY Font () AS HFONT
PROPERTY Font (BYVAL hFont AS HFONT)
Parameters
| Name | Description | |
|---|---|---|
hFont | A handle to the font. |
Description
Gets/sets the font used as default.
Examples
DIM hFont AS HFONT = pWindow.Font
pWindow.Font = hFont
The Set property can only be used before calling the Create method. If the windows has already been created, calling this property is ignored.
Reference
- Include file
CWindow.inc - Defined in AfxNova/CWindow.inc:895
- Documented in Windows/Windows GUI/CWindow Class.md
- Topic: CWindow Class