For the form I do:
hFont := SendMessage(Self.Handle, WM_GETFONT, 0, 0); But returns 0. Ie as if the form has a system font. Why is that?
And if you do, for example, like this:
hFont := SendMessage(CheckBox1.Handle, WM_GETFONT, 0, 0); That returns the correct descriptor.
The same, for example, for TPanel - hFont = 0. And for the hFont button - the correct value.