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

📄 algorithm2view.h

📁 汉诺塔算法演示程序
💻 H
字号:
// Algorithm2View.h : CAlgorithm2View 类的接口
//


#pragma once
#include "AlgorithmFactory.h"

/*enum AlgorithmFlag{HANOI,BITREE};*///各种算法

class CAlgorithm2View : public CView
{
protected: // 仅从序列化创建
	CAlgorithm2View();
	DECLARE_DYNCREATE(CAlgorithm2View)

// 属性
public:
	CAlgorithm2Doc* GetDocument() const;

// 操作
public:

// 重写
	public:
	virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:

// 实现
public:
	virtual ~CAlgorithm2View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	CBasicAlgorithm *pAlg;//指向algorithm的指针
/*	AlgorithmFlag algFlg;*/
// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
/*	afx_msg void OnHanoiGo();*/
	afx_msg void OnFileAlgSelect();
	/*afx_msg void callAlgorithm(AlgorithmFlag flag);*/
	afx_msg void OnFileSetargument();
	afx_msg void OnUpdateFileSetargument(CCmdUI *pCmdUI);
	afx_msg void OnFileGo();
	afx_msg void OnUpdateFileGo(CCmdUI *pCmdUI);
};

#ifndef _DEBUG  // Algorithm2View.cpp 的调试版本
inline CAlgorithm2Doc* CAlgorithm2View::GetDocument() const
   { return reinterpret_cast<CAlgorithm2Doc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

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