📄 mapperview.h
字号:
// mapperView.h : interface of the CMapperView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "map.h"
#include "_scalebar.h"
//}}AFX_INCLUDES
#if !defined(AFX_MAPPERVIEW_H__24A10D0E_BE40_4C71_ADEA_8D0722858D6E__INCLUDED_)
#define AFX_MAPPERVIEW_H__24A10D0E_BE40_4C71_ADEA_8D0722858D6E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "mainfrm.h"
#include "RecordDataDlg.h"
#include "mapperdoc.h"
#include "MapperShape.h"
#include "mappergrid.h"
#include "mapperseis.h"
class CMapperView : public CFormView
{
protected: // create from serialization only
CMapperView();
DECLARE_DYNCREATE(CMapperView)
public:
//{{AFX_DATA(CMapperView)
enum { IDD = IDD_MAPPER_FORM };
CMap1 m_map;
C_ScaleBar m_scale;
//}}AFX_DATA
// Attributes
public:
CMapperDoc* GetDocument();
// Operations
public:
CString m_sQuery; //查询的层名
CMoRecordset m_rsQuery;
CStringArray m_saLabel;
CMapperShape m_oShape;
CMapperGrid m_oGrid;
CMapperSeis m_oSeis;
CMoPolygon m_oQueryInput; //输入查询
// CMoPolygon m_oOperat; //操作结果
CMoRecordset m_rsSunshi0,m_rsSunshi1;
protected:
BOOL m_bPressed;
CMoPoint m_ptPressed;
protected:
CMainFrame* m_pWnd;
CRecordDataDlg m_dlgRs;
CMoLine m_oQueryLine; //测量距离
CMoPolygon m_oQueryPoly; //测量面积
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMapperView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMapperView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void Sub_SetLayerInfo(CString &sType,SMpfLayerInfo &mli);
//{{AFX_MSG(CMapperView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMouseDownMap(short Button, short Shift, long X, long Y);
afx_msg void OnMouseMoveMap(short Button, short Shift, long X, long Y);
afx_msg void OnAfterTrackingLayerDrawMap(long hDC);
afx_msg void OnMouseUpMap(short Button, short Shift, long X, long Y);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnQueryClear2();
afx_msg void OnQueryRecord2();
afx_msg void OnSeisEq32();
afx_msg void OnSeisEq3Clear2();
afx_msg void OnSeisEq3Shp2();
afx_msg void OnSeisLiedu2();
afx_msg void OnSeisLieduClear2();
afx_msg void OnSeisLieduQuery2();
afx_msg void OnSeisShp2();
afx_msg void OnSeisSunshi2();
afx_msg void OnSeisSunshiClear2();
afx_msg void OnShapeClear2();
afx_msg void OnShapeClearAll2();
afx_msg void OnShapeData2();
afx_msg void OnShapeDelete2();
afx_msg void OnShapeExportShp2();
afx_msg void OnShapeOpen2();
afx_msg void OnShapeSave2();
afx_msg void OnShapeSetup2();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in mapperView.cpp
inline CMapperDoc* CMapperView::GetDocument()
{ return (CMapperDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAPPERVIEW_H__24A10D0E_BE40_4C71_ADEA_8D0722858D6E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -