I wonder, how to get a richedits font handle...
WM_GETFONT seems not to work, it only returns 0, but I don't use the systemfont for the richedit.

Please help...

Posted on 2002-11-17 14:45:46 by Sm?rebr?d
wParam = 0; // not used, must be zero
lParam = 0; // not used, must be zero


This message has no parameters.

Return Values

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

You keep getting 0 as the return value as your control is using the system font. Simple as that.
Posted on 2002-11-18 06:49:59 by roticv
Hi roticv,

I definitiv don't use the system-font.
I've set another font via WM_SETFONT and the richedit is working with the new font.
But WM_GETFONT evr returns 0...

I'm using Windows XP and MASM32

Posted on 2002-11-18 07:03:00 by Sm?rebr?d