處理:
設(shè)置:
SetTimer(hwnd, ID_TIMER(id), 1000(時(shí)間間隔), NULL(函數(shù)));
消息相應(yīng)處理:
case WM_TIMER:
//do sting!!
刪除:
KillTimer(hwnd, ID_TIMER);
設(shè)置方式:

image.png
2、設(shè)置獨(dú)立窗口處理函數(shù)

image.png

image.png
3、hwnd設(shè)置為空,id為空,參考第二種設(shè)置方法

image.png