editorview.h

来自「Embedded vc++下开发的可编辑地图程序」· C头文件 代码 · 共 108 行

H
108
字号
 // editorView.h : interface of the CEditorView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_EDITORVIEW_H__119F064F_33B6_4896_A380_073294CE0A53__INCLUDED_)
#define AFX_EDITORVIEW_H__119F064F_33B6_4896_A380_073294CE0A53__INCLUDED_

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

class CEditorView : public CView
{
protected: // create from serialization only
	CEditorView();
	DECLARE_DYNCREATE(CEditorView)

// Attributes
public:
	CEditorDoc* GetDocument();
public:
	CSeMapWnd       m_MapWnd;			//用以地图显示
	
protected:
	CString			m_strEditableLayer;	//记录可编辑图层名	
	bool			m_bFileOpened;      //记录地图是否已经打开
	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEditorView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CEditorView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

// Generated message map functions
protected:
	//{{AFX_MSG(CEditorView)
	afx_msg void OnFileOpen();
	afx_msg void OnFileClose();
	afx_msg void OnAddLayer();
	afx_msg void OnMapZoomin();
	afx_msg void OnMapZoomout();
	afx_msg void OnMapPan();
	afx_msg void OnMapZoomfree();
	afx_msg void OnMapViewEntire();
	afx_msg void OnMapRefresh();
	afx_msg void OnPointSelect();
	afx_msg void OnRectSelect();
	afx_msg void OnLayerManager();	
	afx_msg void OnUpdateMapZoomin(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapZoomout(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapPan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapZoomfree(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePointSelect(CCmdUI* pCmdUI);
	afx_msg void OnUpdateRectSelect(CCmdUI* pCmdUI);
	afx_msg void OnSelectEditLayer();
	afx_msg void OnAddPoint();
	afx_msg void OnAddLine();
	afx_msg void OnAddPolygon();
	afx_msg void OnAddText();
	afx_msg void OnEditText();
	afx_msg void OnDeleteObject();
	afx_msg void OnMoveObject();
	afx_msg void OnAddVertex();
	afx_msg void OnDeleteVertex();
	afx_msg void OnEditVertex();
	afx_msg void OnUpdateAddPoint(CCmdUI* pCmdUI);
	afx_msg void OnUpdateAddLine(CCmdUI* pCmdUI);
	afx_msg void OnUpdateAddPolygon(CCmdUI* pCmdUI);
	afx_msg void OnUpdateAddText(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEditText(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDeleteObject(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMoveObject(CCmdUI* pCmdUI);
	afx_msg void OnUpdateAddVertex(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDeleteVertex(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEditVertex(CCmdUI* pCmdUI);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in editorView.cpp
inline CEditorDoc* CEditorView::GetDocument()
   { return (CEditorDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_EDITORVIEW_H__119F064F_33B6_4896_A380_073294CE0A53__INCLUDED_)

⌨️ 快捷键说明

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