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

📄 programview.h

📁 用VC编制的集成的野人和八数码演示程序。其中野人程序用动态的效果演示
💻 H
字号:
// ProgramView.h : CProgramView 类的接口
//


#pragma once

#include "Intelligence.h"
#include "Mc.h"
#include "EightNumber.h"
class CProgramView : public CScrollView
{
protected: // 仅从序列化创建
	CProgramView();
	DECLARE_DYNCREATE(CProgramView)

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

// 操作
public:

// 重写
	public:
	virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void OnInitialUpdate(); // 构造后第一次调用
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

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

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnIntelligenceBegin();
	afx_msg void OnUpdateIntelligenceBegin(CCmdUI *pCmdUI);
	afx_msg void OnMcBegin();
	afx_msg void OnUpdateMcBegin(CCmdUI *pCmdUI);
	afx_msg void OnMcSetupSpeed();
	afx_msg void OnEightnumberBegin();
	afx_msg void OnUpdateEightnumberBegin(CCmdUI *pCmdUI);
	afx_msg void OnEightnumberShowAll();
	afx_msg void OnUpdateEightnumberShowAll(CCmdUI *pCmdUI);
	afx_msg void OnEightnumberShowResult();
	afx_msg void OnUpdateEightnumberShowResult(CCmdUI *pCmdUI);
	afx_msg void OnTimer(UINT nIDEvent);
private:
	CIntelligence m_cIntelligence;
	CMissionarySavage m_cMissionarySavage;
	bool m_bMissionarySavage;
	int m_nMcSpeed;
	CEightNumber m_cEightNumber;
	bool m_bEightNumber;	
	bool m_bEightNumberAll;
	bool m_bEightNumberResult;
	int m_nEightNumber;
public:
	afx_msg void OnUpdateMcSetupSpeed(CCmdUI *pCmdUI);
};

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

⌨️ 快捷键说明

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