主题:计时器问题
void CTestEncryptDlg::OnTimer(UINT nIDEvent)
{
CString strTmp;
strTmp.Format("%d",now);
SetDlgItemText(IDC_STATIC1,strTmp);
SetDlgItemText(IDC_EDIT1,str2des);
SetDlgItemText(IDC_EDIT2,des2str);
SetDlgItemText(IDC_EDIT3,desString);
}
void CTestEncryptDlg::OnTimeStart()
{
m_timer=SetTimer(1,100,NULL);
m_btimer=FALSE;
}
谁能帮我看看!怎么ontimer计时器启动不起来呢?
{
CString strTmp;
strTmp.Format("%d",now);
SetDlgItemText(IDC_STATIC1,strTmp);
SetDlgItemText(IDC_EDIT1,str2des);
SetDlgItemText(IDC_EDIT2,des2str);
SetDlgItemText(IDC_EDIT3,desString);
}
void CTestEncryptDlg::OnTimeStart()
{
m_timer=SetTimer(1,100,NULL);
m_btimer=FALSE;
}
谁能帮我看看!怎么ontimer计时器启动不起来呢?