void ThreadFunc(LPVOID param)
 {  
CTime time;
CString strTime; 
m_bRun=TRUE;  
while(m_bRun) 
{    
time=CTime::GetCurrentTime(); 
strTime=time.Format("%H:%M:%S");  
::SetDlgItemText(AfxGetApp()->m_pMainWnd->m_hWnd,IDC_TIME, 
strTime);    //Sets the title or text of a control in a dialog box 
Sleep(1000);   
}
}
void CSingle6Dlg::OnButton1() 
{
// TODO: Add your control notification handler code here
hThread=CreateThread(NULL, 
0,  
(LPTHREAD_START_ROUTINE)ThreadFunc,
NULL,  
0, 
&ThreadID);  GetDlgItem(IDC_BUTTON1)->EnableWindow(FALSE); 
GetDlgItem(IDC_STOP)->EnableWindow(TRUE);
}
一直错误提示
'hThread' : undeclared identifier
 'ThreadID' : undeclared identifier