home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c07 / tmpgraph / grafview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.5 KB  |  55 lines

  1. // GrafView.h : interface of the CTemperatureGraphView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CTemperatureGraphView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CTemperatureGraphView();
  9.     DECLARE_DYNCREATE(CTemperatureGraphView)
  10.  
  11. // Attributes
  12. public:
  13.     CTemperatureGraphDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CTemperatureGraphView)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     //}}AFX_VIRTUAL
  24.  
  25. // Implementation
  26. public:
  27.     virtual ~CTemperatureGraphView();
  28. #ifdef _DEBUG
  29.     virtual void AssertValid() const;
  30.     virtual void Dump(CDumpContext& dc) const;
  31. #endif
  32.  
  33. protected:
  34.     void DrawAxes(CDC* pDC);
  35.     void DrawGraph(CDC* pDC);
  36.     void DrawHorizontalDecorations(CDC* pDC);
  37.     void DrawVerticalDecorations(CDC* pDC);
  38.     void SetMappingMode(CDC* pDC);
  39.  
  40. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CTemperatureGraphView)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.         //    DO NOT EDIT what you see in these blocks of generated code !
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. #ifndef _DEBUG  // debug version in TemperatureGraphView.cpp
  50. inline CTemperatureGraphDoc* CTemperatureGraphView::GetDocument()
  51.    { return (CTemperatureGraphDoc*)m_pDocument; }
  52. #endif
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55.