摘要:
使用前要AfxInitRichEdit2();修改背景颜色和字体颜色 CRichEditCtrl* p=(CRichEditCtrl*)GetDlgItem(IDC_RICHEDIT21); CHARFORMAT2 cf; memset((char*)&cf,0,sizeof(cf)); COLORREF color; color = RGB(0,255,0); cf.dwMask = CFM_COLOR; cf.crTextColor = color; //The text color cf.cbSize = sizeof(CHARFORMAT... 阅读全文