int i =0;voidTcpClientDlg::OnTimer(UINT_PTR nIDEvent){switch(nIDEvent){case1://1号定时器应该处理的事情AppendLog(TEXT("Timer1"));
i++;break;case2://2号定时器应该处理的事情AppendLog(TEXT("Timer2"));break;default:break;}if(i ==5){KillTimer(1);//销毁定时器1}
__super::OnTimer(nIDEvent);}