www.pudn.com > 我用vc做的鹰眼图.rar > EagleMapView.h
// EagleMapView.h : interface of the CEagleMapView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EAGLEMAPVIEW_H__D7FADA01_C860_464D_A787_1ACC520097A7__INCLUDED_)
#define AFX_EAGLEMAPVIEW_H__D7FADA01_C860_464D_A787_1ACC520097A7__INCLUDED_
#include "Mapx.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CEagleMapView : public CView
{
protected: // create from serialization only
CEagleMapView();
DECLARE_DYNCREATE(CEagleMapView)
// Attributes
public:
CEagleMapDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEagleMapView)
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);
//}}AFX_VIRTUAL
// Implementation
public:
CMapXFeature Ftr;
CMapXLayer LyrTemp;
BOOL bDown;
virtual ~CEagleMapView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
CMapX m_ctrlMapX;
CMapX m_eaglaeMapX;
//{{AFX_MSG(CEagleMapView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMapToolZoomout();
afx_msg void OnMapToolZoomin();
afx_msg void OnMapToolPan();
afx_msg void OnInfoTool();
afx_msg void OnViewLayercontrol();
afx_msg void OnSetFocus(CWnd* pOldWnd);
//}}AFX_MSG
//MapX事件函数声明
//void OnToolUsed(short ToolNum, double X1, double Y1, double X2, double Y2, double Distance, BOOL Shift, BOOL Ctrl, BOOL* EnableDefault);
void OnMouseDownMap(short Button, short Shift, float X, float Y);
BOOL OnMouseMoveInMap(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
BOOL OnMouseUpInMap(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
void OnMapViewChanged();
DECLARE_MESSAGE_MAP()
DECLARE_EVENTSINK_MAP()
};
#ifndef _DEBUG // debug version in EagleMapView.cpp
inline CEagleMapDoc* CEagleMapView::GetDocument()
{ return (CEagleMapDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EAGLEMAPVIEW_H__D7FADA01_C860_464D_A787_1ACC520097A7__INCLUDED_)