?? 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
//構(gòu)建一個點結(jié)構(gòu),用于存儲點對象的相關(guān)信息
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; //定義鼠標的當前任務(wù)
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]; //定義一個數(shù)組,用于存儲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_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -