Hi there,

Can anyone help me ?
What message must i send to my RichEditControl to make the whole thing arial font or new times roman font instead of that system font ?
tnx in advanced
Posted on 2003-04-04 06:01:29 by Bolle
SendMessage(
(HWND) hWnd, // handle to destination window
WM_SETFONT, // message to send
(WPARAM) wParam, // handle to font
(LPARAM) lParam // redraw option
);

(sorry for C syntax :) )
Posted on 2003-04-04 06:09:13 by beaster
where can i find the list of font names because when i used that within the paint section textout() normal font names liek you see in word doesn't work. some do but some don't.
Posted on 2003-04-04 06:13:53 by Bolle
hmm i tried:

invoke SendMessage, hRichEd,WM_SETFONT, addr FontName, 0

and

invoke SendMessage, hWin,WM_SETFONT, addr FontName, 0

niether works, what am i doing wrong ?
(and i thougt i had to use charformat to change the font but with that i don't know how to)
Posted on 2003-04-04 06:25:50 by Bolle
Hi Bolle

Fill in a LOGFONT structure and use CreateFontIndirect.
Use the returned handle in WM_SETFONT.

KetilO
Posted on 2003-04-04 07:02:31 by KetilO