www.pudn.com > sancedit.rar > MapGenView.h
// MapGenView.h : interface of the CMapGenView class
//
#pragma once
#include "MapGenDoc.h"
class CMapGenView : public CView
{
protected: // create from serialization only
CMapGenView();
DECLARE_DYNCREATE(CMapGenView)
// Attributes
public:
CPoint m_MouseDownPoint;
CMapGenDoc* GetDocument() const;
// Operations
public:
// Overrides
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);
// Implementation
public:
virtual ~CMapGenView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
public:
// 是否已经初始化了!如果没有初始化了,就初始化
bool isInit;
void setupResources(void);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
};
#ifndef _DEBUG // debug version in MapGenView.cpp
inline CMapGenDoc* CMapGenView::GetDocument() const
{ return reinterpret_cast(m_pDocument); }
#endif