mapoperationview.h
来自「Embedded vc++下开发的地图基本操作程序」· C头文件 代码 · 共 87 行
H
87 行
// MapOperationView.h : interface of the CMapOperationView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPOPERATIONVIEW_H__254ED00E_0F14_45CF_BC8B_2718547333FC__INCLUDED_)
#define AFX_MAPOPERATIONVIEW_H__254ED00E_0F14_45CF_BC8B_2718547333FC__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CMapOperationView : public CView
{
protected: // create from serialization only
CMapOperationView();
DECLARE_DYNCREATE(CMapOperationView)
// Attributes
public:
CMapOperationDoc* GetDocument();
// Operations
public:
CSeMapWnd m_MapWnd; //显示管理
bool m_bFileOpened; //地图是否打开
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMapOperationView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMapOperationView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMapOperationView)
afx_msg void OnFileOpen();
afx_msg void OnFileClose();
afx_msg void OnMapZoomin();
afx_msg void OnUpdateMapZoomin(CCmdUI* pCmdUI);
afx_msg void OnMapZoomout();
afx_msg void OnUpdateMapZoomout(CCmdUI* pCmdUI);
afx_msg void OnMapPan();
afx_msg void OnUpdateMapPan(CCmdUI* pCmdUI);
afx_msg void OnMapZoomfree();
afx_msg void OnUpdateMapZoomfree(CCmdUI* pCmdUI);
afx_msg void OnMapSmoothZoomfree();
afx_msg void OnUpdateMapSmoothZoomfree(CCmdUI* pCmdUI);
afx_msg void OnMapSmoothPan();
afx_msg void OnUpdateMapSmoothPan(CCmdUI* pCmdUI);
afx_msg void OnMapPointSelect();
afx_msg void OnMapRectSelect();
afx_msg void OnMapViewEntire();
afx_msg void OnMapRefresh();
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 void OnUpdateMapPointSelect(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapRectSelect(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MapOperationView.cpp
inline CMapOperationDoc* CMapOperationView::GetDocument()
{ return (CMapOperationDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAPOPERATIONVIEW_H__254ED00E_0F14_45CF_BC8B_2718547333FC__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?