demoView.h
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // demoView.h : interface of the CDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DEMOVIEW_H__5CE351E0_6FDE_434B_B2E4_710D72E475D6__INCLUDED_)
  5. #define AFX_DEMOVIEW_H__5CE351E0_6FDE_434B_B2E4_710D72E475D6__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CDemoView : public CView
  10. {
  11. protected: // create from serialization only
  12. CDemoView();
  13. DECLARE_DYNCREATE(CDemoView)
  14. // Attributes
  15. public:
  16. CDemoDoc* GetDocument();
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CDemoView)
  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. BOOL flag;
  33. virtual ~CDemoView();
  34. #ifdef _DEBUG
  35. virtual void AssertValid() const;
  36. virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38. protected:
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(CDemoView)
  42. afx_msg void OnMedium();
  43. afx_msg void OnUpdateMedium(CCmdUI* pCmdUI);
  44. afx_msg void OnSmall();
  45. afx_msg void OnUpdateSmall(CCmdUI* pCmdUI);
  46. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  47. afx_msg void OnUpdateKeyCtrl(CCmdUI* pCmdUI);
  48. afx_msg void OnBig();
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. #ifndef _DEBUG  // debug version in demoView.cpp
  53. inline CDemoDoc* CDemoView::GetDocument()
  54.    { return (CDemoDoc*)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_DEMOVIEW_H__5CE351E0_6FDE_434B_B2E4_710D72E475D6__INCLUDED_)