campusgisview.h
来自「用VC+SuperMap开发的校园GIS系统」· C头文件 代码 · 共 125 行
H
125 行
// CampusGisView.h : interface of the CCampusGisView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CAMPUSGISVIEW_H__245FB9C9_E62F_4249_B6C8_5C47300F8357__INCLUDED_)
#define AFX_CAMPUSGISVIEW_H__245FB9C9_E62F_4249_B6C8_5C47300F8357__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "supermap.h"
#include "InfoDlg.h"
#include "LegendDlg.h"
#include "SpatialInfoDlg.h" // Added by ClassView
#include "ScaleSetDlg.h"
class CCampusGisView : public CView
{
protected: // create from serialization only
CCampusGisView();
DECLARE_DYNCREATE(CCampusGisView)
// Attributes
public:
CCampusGisDoc* GetDocument();
// Operations
public:
//display the datasourceAlias in supermap window
CString m_strDatasourceAlias;
//supermap window
CSuperMap m_Supermap;
CInfoDlg *m_pInfoDlg;
//point to legend window
CLegendDlg *m_pLegendDlg;
CScaleSetDlg *m_pScaleSetDlg;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCampusGisView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
//}}AFX_VIRTUAL
// Implementation
public:
bool bExist;
void CreateObjects(CString strMessage, long DatasetType, long Action);
CSpatialInfoDlg *m_pSpatialDlg;
virtual ~CCampusGisView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CCampusGisView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDestroy();
afx_msg void OnViewZoomin();
afx_msg void OnViewZoomout();
afx_msg void OnViewEntire();
afx_msg void OnViewPan();
afx_msg void OnViewZoomfree();
afx_msg void OnViewRefresh();
afx_msg void OnViewCircleSelect();
afx_msg void OnViewRecselect();
afx_msg void OnViewPointselect();
afx_msg void OnDblClickSupermap();
afx_msg void OnViewFind();
afx_msg void OnUpdateViewFind(CCmdUI* pCmdUI);
afx_msg void OnViewLegend();
afx_msg void OnUpdateViewLegend(CCmdUI* pCmdUI);
afx_msg void OnEditUndo();
afx_msg void OnEditDelete();
afx_msg void OnEditCut();
afx_msg void OnEditCopy();
afx_msg void OnEditPaste();
afx_msg void OnLinkobject();
afx_msg void OnAddNode();
afx_msg void OnEditNode();
afx_msg void OnCatchSet();
afx_msg void OnSpatialInfo();
afx_msg void OnPropreyInfo();
afx_msg void OnDeleteDataset();
afx_msg void OnCreatePoint();
afx_msg void OnCreateLine();
afx_msg void OnPylonLine();
afx_msg void OnCreateCurveLine();
afx_msg void OnCreatePylon();
afx_msg void OnCreateArea();
afx_msg void OnCreateEllipse();
afx_msg void OnCreateCommonText();
afx_msg void OnCreateLineText();
afx_msg void OnSaveMap();
afx_msg void OnFileNew();
afx_msg void OnSaveasMap();
afx_msg void OnMapScaleSet();
afx_msg void OnLineToRegion();
afx_msg void OnRegionToLine();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in CampusGisView.cpp
inline CCampusGisDoc* CCampusGisView::GetDocument()
{ return (CCampusGisDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAMPUSGISVIEW_H__245FB9C9_E62F_4249_B6C8_5C47300F8357__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?