佚名通过本文主要向大家介绍了我使用SetTimer,提示示'SetTimer':functiondoesnottake4parameters是为什么等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 我使用SetTimer,提示示'SetTimer' : function does not take 4 parameters是为什么
描述:
解决方案1:
描述:
void CALLBACK EXPORT TimerProc( HWND hWnd, UINT nMsg, UINT nIDEvent, DWORD dwTime)
{
AfxMessageBox("ok");
}
SetTimer(this->m_hWnd, 1, 100, TimerProc);
提示'SetTimer' : function does not take 4 parameters
解决方案1:
CWnd的SetTimer只有后3个参数
解决方案2: 去掉第一个参数
或者 ::SetTimer
SetTimer(1, 100, TimerProc);