在CAsyncSocket类的派生类中能用定时器吗?
CAsyncSocket可以用
SetTimer(
HWND hWnd, // handle to window
UINT_PTR nIDEvent, // timer identifier
UINT uElapse, // time-out value
TIMERPROC lpTimerFunc // timer procedure
);
但参数hWnd从CAsyncSocket中获得?不要行吗?
在一个类中能设置多个定时器吗?回调函数
VOID CALLBACK TimerProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_TIMER message
UINT_PTR idEvent, // timer identifier
DWORD dwTime // current system time
);
中的uMsg可以以什么方式获得??