// MyTimer.cpp: implementation of the MyTimer class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MyTimer.h" #include "LYFZIPManage.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif extern BOOL g_bWork; ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// MyTimer::MyTimer(int id, int nTime) { m_id=id; m_time=nTime; g_pMainWnd->KillTimer (m_id); g_bWork=1; } MyTimer::~MyTimer() { g_pMainWnd->SetTimer (m_id, m_time, NULL); g_bWork=0; }