Thread.h
上传用户:chenhai826
上传日期:2007-04-11
资源大小:72k
文件大小:1k
- // Class CThread head file
- // Created by liangml 2000-7-30
- #ifndef __THREAD_H__
- #define __THREAD_H__
- #if _MSC_VER > 1000
- #pragma once
- #endif
- class CThread : public CWinThread
- {
- protected:
- HANDLE m_hEventKill;
- HANDLE m_hEventDead;
- static HANDLE m_hSomeoneDead;
- // Operations
- public:
- CThread(CWnd *pWnd);
- void KillThread(void);
- virtual BOOL InitWork(void) { return TRUE; };
- virtual BOOL Work(void) = 0;
- virtual void CleanupWork(void) {};
- //override base functions
- virtual void Delete();
- virtual BOOL InitInstance();
- virtual ~CThread();
- };
- #endif