16,551
社区成员
发帖
与我相关
我的任务
分享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);
//我在这边测试了一下,是可以的