/* richedit文字颜色 */
::CHARFORMAT2 cf;
//memset(&cf,0, sizeof(cf));
m_EditLog.GetDefaultCharFormat(cf);
cf.crTextColor = RGB(255,255,0);
cf.dwMask = CFM_COLOR;
cf.dwEffects &= ~CFE_AUTOCOLOR;
::SendMessage(m_EditLog.m_hWnd,EM_SETCHARFORMAT,SCF_ALL,long(&cf));
// 或者m_EditLog.SetDefaultCharFormat(cf);
//m_EditLog.SetSelectionCharFormat(cf); //这句话是设置选中的颜色,不是默认字体颜色
/* richedit背景颜色 */
//m_EditLog.SetBackgroundColor(FALSE,0);