//mfc 俄罗斯方块 void CB_TrixDlg1::OnTimer(UINT_PTR nIDEvent) { if(!game->Go()) { KillTimer(1); TCHAR *msg = _T("Game Over!"); MessageBox(msg); } Invalidate(true);// 重绘画面 } void CB_TrixDlg1::DrawNet() { DrawSmallNet(); DrawBigNet(); }