Archived

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

how to get color text in win32?

This topic is 4984 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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