Multiple color edit box (Win32)

I want to create a program that will parse text for keywords and make those words a specific color. Which type of control supports many different colors? Should I create my own or override the base control's OnPaint () or something else? (Idiot to avoid your own control from scratch)

thanks

+2


a source to share


2 answers


One option is to use the advanced edit control:
http://www.codeproject.com/KB/edit/RichEditLog_Demo.aspx



Another option is to create a custom control:
http://www.codeproject.com/KB/edit/brainchild.aspx

+2


a source


A standard rich-edit control will handle this fairly easily.



+1


a source







All Articles