-
RichEdit Font Color
I am using a multi-line rich edit control and am trying to change the color of the text. I bring up a Common Control Font Dialog and when the user selects the font and color I store the font in a COLORREF structure.
Do you know what the message or function is to set the font color?
I am using the API.
Thanks
Sean
-
EM_SETCHARFORMAT is the windows message to change the font color. You need to use the CHARFORMAT or CHARFORMAT2 structures to pass to the windows procedure function. (check MSDN for more information on both the windows message and the structures as required)
Hope this helps,
Tyouk
-
> Hope this helps,
Yeah, post it 20 months ago when they might have cared.
What part of "don't bump threads" don't you understand?