📄 maptestview.h
字号:
// MapTestView.h : interface of the CMapTestView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAPTESTVIEW_H__2B8678FA_8F7F_452B_A528_3CA7D4CEDCEE__INCLUDED_)
#define AFX_MAPTESTVIEW_H__2B8678FA_8F7F_452B_A528_3CA7D4CEDCEE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//构建一个点结构,用于存储点对象的相关信息
class CMapTestView : public CView
{
protected: // create from serialization only
CMapTestView();
DECLARE_DYNCREATE(CMapTestView)
// Attributes
public:
CMapTestDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMapTestView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
UINT m_nMouseMode; //定义鼠标的当前任务
bool m_bMapMoving; //判断鼠标左键释放与否
CPoint m_ptOldPoint;
virtual ~CMapTestView();
HCURSOR m_hcurHand; // 定义鼠标样式句柄
HCURSOR m_hcurArrow; // 用于鼠标样式图标的载入
HCURSOR m_hcurZoomIn;
HCURSOR m_hcurZoomOut;
HCURSOR m_hcurCross;
CString path[20]; //定义一个数组,用于存储mif文件的路径
int No; //用于path[]的下标
_ConnectionPtr m_pConnection;
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMapTestView)
afx_msg void OnOpenMif();
afx_msg void OnMapControl(UINT nID);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnUpdateMapControl(CCmdUI* pCmdUI);
afx_msg void OnConvFile();
afx_msg void OnOpenData();
afx_msg void OnFindPath();
afx_msg void OnUpdateFindPath(CCmdUI* pCmdUI);
afx_msg void OnMapClose();
afx_msg void onContextMenu(CWnd* Wnd, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MapTestView.cpp
inline CMapTestDoc* CMapTestView::GetDocument()
{ return (CMapTestDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAPTESTVIEW_H__2B8678FA_8F7F_452B_A528_3CA7D4CEDCEE__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -