MFC五子棋 void CMy3_1View::OnDraw(CDC* pDC) { CMy3_1Doc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here //画背景 CBrush mybrush1; mybrush1.CreateSolidBrush(RGB(192,192,192)); CRect myrect1(0,0,1200,800); pDC->FillRect(myrect1,&mybrush1); //画棋盘框线 CPen mypen; CPen*myol