demoView.h
上传用户:apnc006
上传日期:2013-01-26
资源大小:178k
文件大小:2k
源码类别:

绘图程序

开发平台:

Visual C++

  1. // dqPlotTestView.h : interface of the CDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_DEMOVIEW_H__0D536D2F_5CF1_11D1_AED1_0060973A08A4__INCLUDED_)
  5. #define AFX_DEMOVIEW_H__0D536D2F_5CF1_11D1_AED1_0060973A08A4__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include "..plotclPlot.h"
  10. class CDemoView : public CView
  11. {
  12. protected: // create from serialization only
  13. CDemoView();
  14. DECLARE_DYNCREATE(CDemoView)
  15. // Attributes
  16. public:
  17. CDemoDoc* GetDocument();
  18. // Operations
  19. public:
  20. clPlot m_Plot;
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CDemoView)
  24. public:
  25. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27. virtual void OnInitialUpdate();
  28. protected:
  29. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  30. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  31. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. BOOL canSize;
  36. virtual ~CDemoView();
  37. #ifdef _DEBUG
  38. virtual void AssertValid() const;
  39. virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41. protected:
  42. // Generated message map functions
  43. protected:
  44. //{{AFX_MSG(CDemoView)
  45. afx_msg void OnTimer(UINT nIDEvent);
  46. afx_msg void OnSize(UINT nType, int cx, int cy);
  47. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. #ifndef _DEBUG  // debug version in dqPlotTestView.cpp
  52. inline CDemoDoc* CDemoView::GetDocument()
  53.    { return (CDemoDoc*)m_pDocument; }
  54. #endif
  55. /////////////////////////////////////////////////////////////////////////////
  56. //{{AFX_INSERT_LOCATION}}
  57. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  58. #endif // !defined(AFX_DQPLOTTESTVIEW_H__0D536D2F_5CF1_11D1_AED1_0060973A08A4__INCLUDED_)