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

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