水平移动View.h
上传用户:shlanshu
上传日期:2011-09-07
资源大小:1409k
文件大小:2k
源码类别:

图形图象

开发平台:

WINDOWS

  1. // 水平移动View.h : interface of the CMyView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_VIEW_H__C67CD160_1C8F_4A0E_AFA5_ED09A5E138A9__INCLUDED_)
  5. #define AFX_VIEW_H__C67CD160_1C8F_4A0E_AFA5_ED09A5E138A9__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CMyView : public CView
  10. {
  11. protected: // create from serialization only
  12. CMyView();
  13. DECLARE_DYNCREATE(CMyView)
  14. // Attributes
  15. public:
  16. CMyDoc* GetDocument();
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CMyView)
  22. public:
  23. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. protected:
  26. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  27. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  28. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. int next;
  33. CDC memdc;
  34. CBitmap m_bitmap;
  35. virtual ~CMyView();
  36. #ifdef _DEBUG
  37. virtual void AssertValid() const;
  38. virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40. protected:
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CMyView)
  44. afx_msg void OnRighttoleft();
  45. afx_msg void OnShowLefttoright();
  46. afx_msg void OnShowHor();
  47. afx_msg void OnShowVer();
  48. afx_msg void OnShowRain();
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. #ifndef _DEBUG  // debug version in 水平移动View.cpp
  53. inline CMyDoc* CMyView::GetDocument()
  54.    { return (CMyDoc*)m_pDocument; }
  55. #endif
  56. /////////////////////////////////////////////////////////////////////////////
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_VIEW_H__C67CD160_1C8F_4A0E_AFA5_ED09A5E138A9__INCLUDED_)