16,548
社区成员




CHARFORMAT cf;
ZeroMemory(&cf, sizeof(CHARFORMAT));
cf.cbSize = sizeof(CHARFORMAT);
cf.dwMask = CFM_COLOR;
cf.crTextColor = RGB(0, 255,0);
GetRichEditCtrl().SetSel(0, -1);
GetRichEditCtrl().SetSelectionCharFormat(cf);
//我在这边测试了一下,是可以的