|
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
|