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

📄 simulation.h.svn-base

📁 股票软件源码
💻 SVN-BASE
字号:
// Simulation.h: interface for the CSimulation class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SIMULATION_H__52C07D2D_A43C_4021_B926_3A8FE98354AF__INCLUDED_)
#define AFX_SIMULATION_H__52C07D2D_A43C_4021_B926_3A8FE98354AF__INCLUDED_

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


//////////////////////////////////////////////////////////////////////
// CSimulation

class	CSimulation;

typedef	struct simulation_info_t	{
	HWND				hMainWnd;
	CStrategy	*		pStrategy;
} SIMULATION_INFO, * LPSIMULATION_INFO;
/***
	策略的模拟线程控制类
*/
class CSimulation  
{
public:
	CSimulation();
	virtual ~CSimulation();

	static HANDLE m_hEventKillSimulationThread;
	static HANDLE m_hEventSimulationThreadKilled;

	void	SetStrategy( CStrategy * pStrategy, HWND hMainWnd );
	BOOL	DownloadDataIfNeed( );
	void	Restart( );
	void	Pause( );
	void	Continue( );
	void	Stop();
	void	OnEnd( BOOL bFinished );

protected:
	SIMULATION_INFO *	m_pSimulationInfo;
	CStrategy		*	m_pStrategy;
	HWND				m_hMainWnd;
	BOOL				m_bStopAndReset;
};

#endif // !defined(AFX_SIMULATION_H__52C07D2D_A43C_4021_B926_3A8FE98354AF__INCLUDED_)

⌨️ 快捷键说明

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