how can alter some of the words of the rich edit control.. that only the word i want will be in color? basicly like in an IDE?
thanks.
This is a discussion on rich edit... within the Windows Programming forums, part of the Platform Specific Boards category; how can alter some of the words of the rich edit control.. that only the word i want will be ...
how can alter some of the words of the rich edit control.. that only the word i want will be in color? basicly like in an IDE?
thanks.
Use a CHARRANGE struct and EM_EXSETSEL message to define the specific characters you'd like to format. Then use a CHARFORMAT struct and EM_SETCHARFORMAT message to set the attributes of the selected characters.
"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C