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

📄 collegewizardview.h

📁 这是我写的数据结构的课设
💻 H
字号:
// CollegeWizardView.h : interface of the CCollegeWizardView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_COLLEGEWIZARDVIEW_H__9FB3BC16_8D05_4A62_84F7_DB727BD748DF__INCLUDED_)
#define AFX_COLLEGEWIZARDVIEW_H__9FB3BC16_8D05_4A62_84F7_DB727BD748DF__INCLUDED_

#include "Command.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

enum ECommandType	// 命令类
{
	ctUnknown = 0,
	//  操作命令类
	ctInsertVertex  = 1,	// 插入景点或建筑
	ctInsertPath1	= 2,	// 选择插入道路
	ctInsertPath2	= 3,	// 选择插入道路,且已经选中一个点
	ctDelete		= 4,	// 删除
	ctUpdate		= 5,	// 更改信息
	ctInformation   = 6,	//查看信息
	ctShortestPath1  = 7,	//查看最短路径 
	ctShortestPath2  = 8,	//查看最短路径 ,且已经选中一个点
	ctAllPaths1		= 9,	//查看所有路径
	ctAllPaths2		= 10,	//查看所有路径,且已经选中一个点
};

class CCollegeWizardView : public CScrollView
{
protected: // create from serialization only
	CCollegeWizardView();
	DECLARE_DYNCREATE(CCollegeWizardView)

// Attributes
public:
	CCollegeWizardDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCollegeWizardView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void Clean();
	int m_cmdType;
//	CCommand* m_pCmd;
	virtual ~CCollegeWizardView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCollegeWizardView)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnEditInsertVertex();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEditInsertPath();
	afx_msg void OnEditUpdate();
	afx_msg void OnViewInformation();
	afx_msg void OnViewAllpaths();
	afx_msg void OnViewShortestpath();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEditDelete();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in CollegeWizardView.cpp
inline CCollegeWizardDoc* CCollegeWizardView::GetDocument()
   { return (CCollegeWizardDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COLLEGEWIZARDVIEW_H__9FB3BC16_8D05_4A62_84F7_DB727BD748DF__INCLUDED_)

⌨️ 快捷键说明

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