SetTimer疑惑!

SetTimer疑惑!
//回调函数
void CALLBACK TimerProc(HWND hWnd,UINT nMsg,UINT nIDEvent,DWORD dwTime){
  CTime time=CTime::GetCurrentTime();
  CString str=time.Format("%H:%M:%S");
  m_Time.SetWindowText(str);
 }

//SetTimer函数调用
CWnd::SetTimer(1,1000,TimerProc);

编译出错,错误信息如下:
C:\Documents and Settings\ttc\桌面\C_workplace\System_Time\System_TimeDlg.cpp(164) : error C2664: 'SetTimer' : cannot convert parameter 3 from 'void (struct HWND__ *,unsigned int,unsigned int,unsigned long)' to 'void (__stdcall *)(struct HWND__ *,un
signed int,unsigned int,unsigned long)'
        None of the functions with this name in scope match the target type

这是为什么???
期待高手解决!

你可能感兴趣的:(SetTimer疑惑!)