📄 geogisview.h
字号:
// GeoGisView.h : interface of the CGeoGisView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GEOGISVIEW_H__D6C86796_88AD_42A1_A23D_C76B01E0F9BD__INCLUDED_)
#define AFX_GEOGISVIEW_H__D6C86796_88AD_42A1_A23D_C76B01E0F9BD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CGeoGisView : public CScrollView
{
protected: // create from serialization only
CGeoGisView();
DECLARE_DYNCREATE(CGeoGisView)
// Attributes
public:
CGeoGisDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGeoGisView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
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 OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
//}}AFX_VIRTUAL
// Implementation
public:
void DrawBack(CDC* pDC);
int DLtoVL(float l);
float VLtoDL(int l);
void DPtoVP(float x,float y,int *X,int *Y);
void VPtoDP(int x,int y,float *X,float *Y);
virtual ~CGeoGisView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
int PushNumb;
int m_DrawCurrent;
//{{AFX_MSG(CGeoGisView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg void OnDrawPoint();
afx_msg void OnUpdateDrawPoint(CCmdUI* pCmdUI);
afx_msg void OnDrawLine();
afx_msg void OnUpdateDrawLine(CCmdUI* pCmdUI);
afx_msg void OnDrawPline();
afx_msg void OnUpdateDrawPline(CCmdUI* pCmdUI);
afx_msg void OnDrawCircle();
afx_msg void OnUpdateDrawCircle(CCmdUI* pCmdUI);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CPoint mPointOld,mPointOrign1,mPointOrign;
short m_pColor;
short m_bColor;
short m_brColor;
short m_LineWide;
short m_LineType;
short m_Layer;
float m_xStart,m_yStart,blc;
int m_MapMode;
int m_wScreen,m_hScreen;
};
#ifndef _DEBUG // debug version in GeoGisView.cpp
inline CGeoGisDoc* CGeoGisView::GetDocument()
{ return (CGeoGisDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GEOGISVIEW_H__D6C86796_88AD_42A1_A23D_C76B01E0F9BD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -