home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / PID / PIDView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-17  |  2.1 KB  |  83 lines

  1. // PIDView.h : interface of the CPIDView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "rtpidx.h"
  6. #include "scrollx.h"
  7. //}}AFX_INCLUDES
  8.  
  9. #if !defined(AFX_PIDVIEW_H__C168C5ED_4706_11D1_A956_00C0F6A06F60__INCLUDED_)
  10. #define AFX_PIDVIEW_H__C168C5ED_4706_11D1_A956_00C0F6A06F60__INCLUDED_
  11.  
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15.  
  16. class CPIDView : public CFormView
  17. {
  18. protected: // create from serialization only
  19.     CPIDView();
  20.     DECLARE_DYNCREATE(CPIDView)
  21.  
  22. public:
  23.     //{{AFX_DATA(CPIDView)
  24.     enum { IDD = IDD_PID_FORM };
  25.     CRTPIDX    m_PIDControl;
  26.     CScrollX    m_ScrollGraph;
  27.     //}}AFX_DATA
  28.  
  29. // Attributes
  30. public:
  31.     CPIDDoc* GetDocument();
  32.     double rMeasured;
  33.     double rOutput;
  34.     double rSetpoint;
  35.  
  36. // Operations
  37. public:
  38.  
  39. // Overrides
  40.     // ClassWizard generated virtual function overrides
  41.     //{{AFX_VIRTUAL(CPIDView)
  42.     public:
  43.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  44.     virtual void OnInitialUpdate();
  45.     protected:
  46.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  47.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  48.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  49.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  50.     virtual void OnPrint(CDC* pDC, CPrintInfo*);
  51.     //}}AFX_VIRTUAL
  52.  
  53. // Implementation
  54. public:
  55.     virtual ~CPIDView();
  56. #ifdef _DEBUG
  57.     virtual void AssertValid() const;
  58.     virtual void Dump(CDumpContext& dc) const;
  59. #endif
  60.  
  61. protected:
  62.  
  63. // Generated message map functions
  64. protected:
  65.     //{{AFX_MSG(CPIDView)
  66.     afx_msg void OnOnInternalTimerRtpidxctrl1();
  67.     DECLARE_EVENTSINK_MAP()
  68.     //}}AFX_MSG
  69.     DECLARE_MESSAGE_MAP()
  70. };
  71.  
  72. #ifndef _DEBUG  // debug version in PIDView.cpp
  73. inline CPIDDoc* CPIDView::GetDocument()
  74.    { return (CPIDDoc*)m_pDocument; }
  75. #endif
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.  
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  81.  
  82. #endif // !defined(AFX_PIDVIEW_H__C168C5ED_4706_11D1_A956_00C0F6A06F60__INCLUDED_)
  83.