📄 maptestview.h
字号:
// MapTestView.h : interface of the CMapTestView class
//
/////////////////////////////////////////////////////////////////////////////
#include "MapX.h"
/*
* This sample application and corresponding sample code is provided for
* example purposes only. It has not undergone rigorous testing and as
* such should not be shipped as part of a final application without
* extensive testing on the part of the organization releasing the
* end-user product.
*/
class CMapTestView : public CView
{
protected: // create from serialization only
CString custAmt;
CString custLName;
CString custZip;
CString custState;
CString custCity;
CString custCompany;
CString custTerr;
CString custFName;
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:
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 ~CMapTestView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CMapX m_ctrlMapX;
// Generated message map functions
protected:
//{{AFX_MSG(CMapTestView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnMapToolCenter();
afx_msg void OnMapToolPan();
afx_msg void OnMapToolZoomin();
afx_msg void OnMapToolZoomout();
afx_msg void OnViewLayercontrol();
afx_msg void OnViewProperties();
afx_msg void OnUpdateMapToolArrow(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolCenter(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolPan(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolZoomin(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolZoomout(CCmdUI* pCmdUI);
afx_msg void OnMapToolArrow();
afx_msg void OnMapToolInfotool();
afx_msg void OnUpdateMapToolInfotool(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolAddOutletLayer(CCmdUI* pCmdUI);
afx_msg void OnEditCopy();
afx_msg void OnInfoTool();
afx_msg void OnUpdateInfoTool(CCmdUI* pCmdUI);
afx_msg void OnMapAddcustomerlayer();
afx_msg void OnUpdateMapAddcustomerlayer(CCmdUI* pCmdUI);
afx_msg void OnMapRemovecustomerlayer();
afx_msg void OnUpdateMapRemovecustomerlayer(CCmdUI* pCmdUI);
afx_msg void OnMapAdddatasetfromlayer();
afx_msg void OnUpdateMapAdddatasetfromlayer(CCmdUI* pCmdUI);
afx_msg void OnMapAddtheme();
afx_msg void OnUpdateMapAddtheme(CCmdUI* pCmdUI);
afx_msg void OnMapAddoutletlayer();
afx_msg void OnUpdateMapAddoutletlayer(CCmdUI* pCmdUI);
afx_msg void OnMapRemoveoutletlayer();
afx_msg void OnUpdateMapRemoveoutletlayer(CCmdUI* pCmdUI);
afx_msg void OnMapBuffersBufferthecustomers();
afx_msg void OnUpdateMapBuffersBufferthecustomers(CCmdUI* pCmdUI);
afx_msg void OnMapBuffersBuffertheoutlets();
afx_msg void OnUpdateMapBuffersBuffertheoutlets(CCmdUI* pCmdUI);
afx_msg void OnMapBuffersRemovecustomerbuffer();
afx_msg void OnUpdateMapBuffersRemovecustomerbuffer(CCmdUI* pCmdUI);
afx_msg void OnMapBuffersRemovetheoutletsbuffers();
afx_msg void OnUpdateMapBuffersRemovetheoutletsbuffers(CCmdUI* pCmdUI);
//}}AFX_MSG
void OnToolUsed(short ToolNum, double X1, double Y1, double X2, double Y2, double Distance, BOOL Shift, BOOL Ctrl, BOOL* EnableDefault);
void OnThemeModifyRequested(LPDISPATCH Theme);
void OnMouseUp_Map(short Button, short Shift, long X, long Y);
DECLARE_MESSAGE_MAP()
DECLARE_EVENTSINK_MAP()
};
#ifndef _DEBUG // debug version in MapTestView.cpp
inline CMapTestDoc* CMapTestView::GetDocument()
{ return (CMapTestDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -