www.pudn.com > MapXgis.rar > MapXSampleMDIView.h
// MapXSampleMDIView.h : CMapXSampleMDIView 类的接口
//
#pragma once
class CMapXSampleMDIView : public CView
{
protected: // 仅从序列化创建
CMapXSampleMDIView();
DECLARE_DYNCREATE(CMapXSampleMDIView)
// 属性
public:
CMapXSampleMDIDoc* GetDocument() const;
// 操作
public:
// 重写
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
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);
// 实现
public:
virtual ~CMapXSampleMDIView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CMapX m_ctrlMapX;
// 生成的消息映射函数
protected:
DECLARE_MESSAGE_MAP()
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 OnMapToolPan();
afx_msg void OnMapToolZoomin();
afx_msg void OnMapToolZoomout();
afx_msg void OnUpdateMapToolArrow(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolPan(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolZoomin(CCmdUI* pCmdUI);
afx_msg void OnUpdateMapToolZoomout(CCmdUI* pCmdUI);
DECLARE_EVENTSINK_MAP()
afx_msg void OnMapViewChanged();
virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/);
};
#ifndef _DEBUG // MapXSampleMDIView.cpp 的调试版本
inline CMapXSampleMDIDoc* CMapXSampleMDIView::GetDocument() const
{ return reinterpret_cast(m_pDocument); }
#endif