C++ MFC 飞机大战在爆炸后怎么删除爆炸效果
DC.FillSolidRect(rect,RGB(255,255,255));switch(nIDEvent){case1://pDoc->explo.draw(&DC...
DC.FillSolidRect(rect, RGB(255, 255, 255));
switch (nIDEvent)
{
case 1:
//pDoc->explo.draw(&DC);
for (pos = pDoc->explist.GetHeadPosition(); pos != NULL;)
{
CExplo* temp = (CExplo*)pDoc->explist.GetNext(pos);
temp->draw(&DC);
}
break;
default:
break;
}
//this->Invalidate(true);
CView::OnTimer(nIDEvent);
} 展开
switch (nIDEvent)
{
case 1:
//pDoc->explo.draw(&DC);
for (pos = pDoc->explist.GetHeadPosition(); pos != NULL;)
{
CExplo* temp = (CExplo*)pDoc->explist.GetNext(pos);
temp->draw(&DC);
}
break;
default:
break;
}
//this->Invalidate(true);
CView::OnTimer(nIDEvent);
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询