2#include "helper/STimerGenerator.h"
15 SMap<UINT_PTR, TIMERINFO>::CPair *p =
m_mapNamedObj->GetNext(pos);
16 ::KillTimer(NULL, p->m_key);
30 evt.uID = (UINT)idEvent;
32 ti.pEvtSlot->Run(&evt);
42 ::KillTimer(NULL, uID);
51 TIMERINFO ti = { pEvtSlot, bRepeat, uData };
bool GetKeyObject(const SStringA &key, TObj &obj) const
SMap< SStringA, TObj > * m_mapNamedObj
bool AddKeyObject(const SStringA &key, const TObj &obj)
bool RemoveKeyObject(const SStringA &key)
static TClass & getSingleton(void)
static T * ms_Singleton
Static pointer to the singleton instance.
void ClearTimer(UINT_PTR uID)
清除定时器
static VOID CALLBACK _TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
定时器回调函数
UINT SetTimer(IEvtSlot *pEvtSlot, UINT nElapse, BOOL bRepeat, LPARAM uData)
设置定时器