how to get color text in win32?

Started by
2 comments, last by McZ 19 years, 12 months ago
well... how do I create colored text in a textbox to mark keywords for a C++ file... like MSVC++ does and other editors. [EDIT]: I don't use any MFC stuff [edited by - McZ on April 23, 2004 6:16:31 AM]
Advertisement
There''s two ways to do this. The first is to draw all the text yourself on your window''s client area. Slow and a lot of work. The other is to use the Rich Edit control. Look it up in the MSDN docs. It does require a bit of work, but the control takes care of a lot for you.

Skizz
Look up the Scintilla windows control.
--God has paid us the intolerable compliment of loving us, in the deepest, most tragic, most inexorable sense.- C.S. Lewis
Rich Edit controls.

This topic is closed to new replies.

Advertisement