Archived

This topic is now archived and is closed to further replies.

McZ

how to get color text in win32?

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites