Rich Edit Control Colors

This is a discussion on Rich Edit Control Colors within the Windows Programming forums, part of the Platform Specific Boards category; I know its possible to change the color of the text inside a Rich Edit Control, but im not sure ...

  1. #1
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483

    Rich Edit Control Colors

    I know its possible to change the color of the text inside a Rich Edit Control, but im not sure how.

    I'm pretty sure you can do it with RTF, no? But im not sure how to set the RTF, i've tried but all thats happened so far is its displayed the RTF code, instead of actually displaying the the colored text.

    Any suggestions?
    My Website
    010000110010101100101011
    Add Color To Your Code!

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    96
    Quote Originally Posted by mrafcho001
    I know its possible to change the color of the text inside a Rich Edit Control, but im not sure how.

    I'm pretty sure you can do it with RTF, no? But im not sure how to set the RTF, i've tried but all thats happened so far is its displayed the RTF code, instead of actually displaying the the colored text.

    Any suggestions?

    EM_SETCHARFORMAT

  3. #3
    Registered User mrafcho001's Avatar
    Join Date
    Jan 2005
    Posts
    483
    Thanks,

    But what if i had a big text and had to color some of the words in the text, how would i go about doing that? i see how you can enable the user to change formating of a text.
    My Website
    010000110010101100101011
    Add Color To Your Code!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Rich Edit Control - Get And Set Caret Position?
    By Charles01 in forum Windows Programming
    Replies: 1
    Last Post: 12-05-2005, 10:26 AM
  2. serialize rich edit control problem
    By RancidWannaRiot in forum Windows Programming
    Replies: 2
    Last Post: 11-22-2005, 07:12 PM
  3. newbie to rich edit, cant get it to work
    By hanhao in forum Windows Programming
    Replies: 1
    Last Post: 03-24-2004, 10:54 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM
  5. Rich edit control example Win API
    By Echidna in forum Windows Programming
    Replies: 1
    Last Post: 09-17-2001, 03:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21