问题描述:
问题解答:
哥们,用在模式对话框里加一个定时器,
然后来记一个数,
当记到一定的数目(也就是一定的时间)后,
向提示对话框发送一个WM_CLOSE,
令其关闭。
可以实现你要的功能。
在提示对话框中加入的代码:
BOOL my::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
Count=0;
SetTimer(1,100,NULL);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void my::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
Count++;
if(Count==20)
{
Count=0;
this->SendMessage(WM_CLOSE);
}
CDialog::OnTimer(nIDEvent);
}
你可以自己试一下。
你没有正确安装网卡驱动吧?
网卡驱动重新安装一下 你可以先进去安全模式 然后把网卡卸载了 然后在重起电脑 用买电脑时候的光盘驱一下网卡驱动 就好了