⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exitmanager.h

📁 墨香最新私服
💻 H
字号:
// ExitManager.h: interface for the CExitManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_EXITMANAGER_H__7A240F06_645B_4B70_818E_DD5468AAB59C__INCLUDED_)
#define AFX_EXITMANAGER_H__7A240F06_645B_4B70_818E_DD5468AAB59C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define EXITMGR USINGTON(CExitManager)


enum eEXIT_KIND
{
	eEK_GAMEEXIT,
	eEK_CHARSEL,
};

class CExitManager  
{

protected:
	BOOL	m_bExitProcessing;
	DWORD	m_dwStartTime;
	int		m_nExitCount;
	int		m_nCount;

	int		m_nExitKind;
	BOOL	m_bExitSync;

public:
	CExitManager();
	virtual ~CExitManager();

	int CanExit();
	BOOL SendExitMsg( int nExitKind );
	void StartExit();
	void RejectExit( int nExitCode );
	void Exit();
	void CancelExit( int nErrorCode );
	void Process();
	BOOL IsExitWaiting() { return m_bExitSync; }
};

EXTERNGLOBALTON(CExitManager)

#endif // !defined(AFX_EXITMANAGER_H__7A240F06_645B_4B70_818E_DD5468AAB59C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -