Well, I want to use a rich edit control. I have the RichEdit window like this:
#include <richedit.h>
/* .................. */
/* Some Code */
/* .................. */
case WM_CREATE:
HINSTANCE hDLL;
hDLL = LoadLibrary("riched32.dll");
riched = CreateWindowEx(
WS_EX_CLIENTEDGE,
"RichEdit", "Test",
WS_CHILD | WS_VISIBLE,
0, 0, 200, 200,
hwnd,
NULL,
NULL,
NULL
);
My question is, how do I set certain chars to red, certain chars to green, and etc.? I know it's the EM_SETCHARFORMAT, I think, but I don't know how to use it. Answers or even links should help!
Thanks,
Matt U.
(BTW, I am using the MinGW compiler, and the Bloodshed Dev-C++ IDE)