BOOL CMainWindow::OnEraseBkgnd(CDC* pDC) { CRect rc; GetClientRect(&rc); pDC->FillSolidRect(&rc , RGB(0,0,255) ); //蓝色RGB return TRUE; }