russiaView.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:2k
- // russiaView.h : interface of the CRussiaView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_RUSSIAVIEW_H__13735450_1584_11D6_A92C_A9CB162F7042__INCLUDED_)
- #define AFX_RUSSIAVIEW_H__13735450_1584_11D6_A92C_A9CB162F7042__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CRussiaView : public CView
- {
- protected: // create from serialization only
- CRussiaView();
- DECLARE_DYNCREATE(CRussiaView)
- // Attributes
- public:
- CRussiaDoc* GetDocument();
- void DrawBlocks(CDC * pDC);
- void DrawWhiteBlocks(CDC *pDC,CRect &rect);
- void DrawColorBlocks(CDC *pDC,CRect &rect);
- void DrawEdge(CDC * pDC);
- int width;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CRussiaView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CRussiaView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CRussiaView)
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnNewgame();
- afx_msg void OnSavegame();
- afx_msg void OnHerolist();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in russiaView.cpp
- inline CRussiaDoc* CRussiaView::GetDocument()
- { return (CRussiaDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_RUSSIAVIEW_H__13735450_1584_11D6_A92C_A9CB162F7042__INCLUDED_)