highlight array of text in textbox

Basically what i am wondering is in win32 api textbox, how can have it so it highlights certain words in a textbox through an array.

What do you mean by a "win32 api textbox"?

The Win32 API has the edit control and the richedit control. You can't highlight just certain words with a normal edit control, but you can with a richedit control (using RTF).

{\rtf1\ansi\deff0
{\colortbl;\red0\green0\blue0;\red255\green0\blue0;}
This line is the default color\line
\cf2
This line is red\line
\cf1
This line is the default color
}


There is a TextBox in the .Net Forms library which can be used via C++/CLI, but that's another story. I haven't used it, but there's a RichTextBox which allows you to control the text color.

Writing colorized text to RichTextBox
http://blogs.msdn.com/b/jmstall/archive/2006/01/13/color-print.aspx
Topic archived. No new replies allowed.