Quote:// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
CHARFORMAT cf;
// Modify the word format so that the selected word is
// displayed in bold and not striked out.
cf.dwMask = CFM_STRIKEOUT|CFM_BOLD;
cf.dwEffects = CFE_BOLD;
pmyRichEditCtrl->SetWordCharFormat(cf);
That seems like what I need to do...so I have to select the text (from within the program) and then set the color of that text? Hmmm...that seems a little foreign to me. Oh well, how do I select text then?
Whoa, wait...I just noticed this: "CRichEditCtrl". Is that MFC? Sorry, bud, I don't do MFC. I like small/fast programs.
I tried creating a RichEdit using CreateWindowEx(...) but it didn't show up. I can't post the code because I don't have it anymore (sorry...why would I keep code that doesn't work? I just replaced it with a normal edit until I can figure this out).
I can't seem to find any good Rich Edit tutorials online using simple Win32 - They all use MFC! Grr...