activeobject.h
来自「c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++」· C头文件 代码 · 共 40 行
H
40 行
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
// http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////
#if !defined ACTIVE_H
#define ACTIVE_H
#include "thread.h"
#include <windows.h>
class ActiveObject
{
public:
ActiveObject ();
virtual ~ActiveObject () {}
void Kill ();
protected:
virtual void InitThread () = 0;
virtual void Loop () = 0;
virtual void FlushThread () = 0;
int _isDying;
static DWORD WINAPI ThreadEntry ( void *pArg);
Thread _thread;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?