settimer后 进入不了ontimer函数
代码截取了一部分如下:
Invalidate(TRUE);
PAINTSTRUCT ps;
CDC* pDC = BeginPaint(&ps);
GetClientRect(&m_rect);
OnDraw(pDC);
_mDLDTimeID=SetTimer(2,1000,NULL);//设置时间保存图片
//_mDelayTimeID=SetTimer(4,3000,NULL);
EndPaint(&ps);
//
readPRD("D:\\mmm.dat");
进入不了ontimer函数 直接执行readPRD("D:\\mmm.dat");在readPRD("D:\\mmm.dat");函数体里这样设置
Invalidate(TRUE);
PAINTSTRUCT ps;
CDC* pDC = BeginPaint(&ps);
GetClientRect(&m_rect);
OnDraw(pDC);
_mDLDTimeID=SetTimer(2,1000,NULL);//设置时间保存图片
//_mDelayTimeID=SetTimer(4,3000,NULL);
EndPaint(&ps);
//
没有后面的代码就能进入ontimer函数,请问是怎么回事?急等