📄 wycview.h
字号:
// wycView.h : interface of the CWycView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mopoint.h" // Added by ClassView
#include "map.h"
#include "morecordset.h" // Added by ClassView
//}}AFX_INCLUDES
class CMoPolyArray : public CTypedPtrArray<CPtrArray, CMoPolygon*> {};
class CMoLineArray : public CTypedPtrArray<CPtrArray, CMoLine*> {};
class CMoPointArray : public CTypedPtrArray<CPtrArray, CMoPoint*> {};
class CMoRectangleArray : public CTypedPtrArray<CPtrArray, CMoRectangle*> {};
class CMoEllipseArray : public CTypedPtrArray<CPtrArray, CMoEllipse*> {};
#if !defined(AFX_WYCVIEW_H__6C533BAB_AB8B_4FF1_8C1C_0E72020F5094__INCLUDED_)
#define AFX_WYCVIEW_H__6C533BAB_AB8B_4FF1_8C1C_0E72020F5094__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CWycView : public CFormView
{
protected: // create from serialization only
CWycView();
DECLARE_DYNCREATE(CWycView)
public:
//{{AFX_DATA(CWycView)
enum { IDD = IDD_WYC_FORM };
CMap1 m_map;
//}}AFX_DATA
// Attributes
public:
CWycDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWycView)
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:
void ReleaseEllipses();
CMoRecordset m_selection;
int m_mouseDownNum;
CMoPoint m_endPoint;
CMoPoint m_startPoint;
int GetLineLength;
int GetPointCoordiante;
int m_CurrentOperation;
virtual ~CWycView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
int m_deletelayer;
CString m_layer;
CMoMapLayer selectedMaplayer;
void ReleasePolygons();
void SaveEllipses(CMoDataConnection& conn, CMoTableDesc& tableDesc);
void SavePolygons(CMoDataConnection& conn, CMoTableDesc& tableDesc);
void ReleaseRectangles();
void ReleaseLines();
void SaveRectangles(CMoDataConnection& conn, CMoTableDesc& tableDesc);
void SaveLines(CMoDataConnection& conn, CMoTableDesc& tableDesc);
void SavePoints(CMoDataConnection& conn, CMoTableDesc& tableDesc);
void ReleasePoints();
CMoPointArray m_points;
CMoLineArray m_lines; // Lines to be saved.
CMoPolyArray m_polys; // Polygons to be saved.
CMoRectangleArray m_rectangles; // rectangles to be saved.
CMoEllipseArray m_ellipses; // Polygons to be saved.
CString m_path; // Name of shape file
//{{AFX_MSG(CWycView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMouseDownMap1(short Button, short Shift, long X, long Y);
afx_msg void OnMapTool(UINT nID);
afx_msg void OnUpdateMapTool(CCmdUI* pCmdUI);
afx_msg void OnMapFullExtent();
afx_msg void OnGetlengthLine();
afx_msg void OnGetdistanceP1top2();
afx_msg void OnDblClickMap1();
afx_msg void OnBeforeLayerDrawMap1(short index, long hDC);
afx_msg void OnUpdateSearchStates(CCmdUI* pCmdUI);
afx_msg void OnAfterTrackingLayerDrawMap1(long hDC);
afx_msg void OnAddpoint();
afx_msg void OnAddrectangle();
afx_msg void OnAddline();
afx_msg void OnFileSave();
afx_msg void OnAddellipse();
afx_msg void OnMapAddpoly();
afx_msg void OnFileOpen();
afx_msg void OnFileNew();
afx_msg void OnSelect();
afx_msg void OnSearchStates();
afx_msg void OnDeletelayer();
afx_msg void OnResetlayer();
afx_msg void OnQueryPoint();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
UINT m_curTool;
};
#ifndef _DEBUG // debug version in wycView.cpp
inline CWycDoc* CWycView::GetDocument()
{ return (CWycDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WYCVIEW_H__6C533BAB_AB8B_4FF1_8C1C_0E72020F5094__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -