Thread: Richedit
View Single Post
Old 07-29-2004, 06:59 AM   #2 (permalink)
bdiamond
Registered User
 
Join Date: Jul 2004
Posts: 5
bdiamond is on a distinguished road
You have to make a variable of type CHARFORMAT. Then you set the dwFlags with CFE_COLOR, then set the color member to the RGB() value you want. Then call SelectionCharFormat, passing the address of the CHARFORMAT structure you set up. Some of what I put down may be off a little bit, but look up CHARFORMAT in the MSDN to get a more exact explanation. Hope this helps
bdiamond is offline   Reply With Quote