添加一句话 pRichEdit->EnableWindow(TRUE); COLORREF res = pRichEdit->SetBackgroundColor(FALSE, oldclr); //PrintRichEdit