MFC,win32,linux C中SetTimer定时器用法
一. MFC中SetTimer用法
参照http://blog.csdn.net/shaopengf/article/details/38147089
二. win32中SetTimer用法
#include <string.h>
using namespace std;
{
DWORD dwTimerId;
dwTimerId=SetTimer(NULL,1,1000,NULL);//1000:1秒;NULL:这里没有回调函数,是按照时间到后去响应一个自定义的函数Resp_fun()。
while(GetMessage(&msg, NULL, 0, 0))
{
if(取消定时条件)
{
KillTimer(NUL
396




被折叠的 条评论
为什么被折叠?



