至于设置richedit背景比较简单:
void CreatRichEdit()
{
m_richedit.CreateES_AUTOVSCROLL|ES_MULTILINE|ES_WANTRETURN|WS_VISIBLE,rect,pWnd,1)
m_richedit.SetBackgroundColor( FALSE,RGB(0,0,255));
m_richedit.SetFocus( );
}
m_richedit.SetBackgroundColor( FALSE,RGB(0,0,255));//这句话就够了