home *** CD-ROM | disk | FTP | other *** search
/ Using VRML (Special Edition) / Special_Edition_Using_VRML_CDROM_Que_1996.iso / webpages / software / win95 / browsers / ambersw / tutorial / lesson3 / lessovw.h < prev    next >
C/C++ Source or Header  |  1995-12-14  |  2KB  |  65 lines

  1. // lessovw.h : interface of the Clesson3View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #include "channel.hpp"
  6. #include "mouse.hpp"
  7.  
  8. class Clesson3View : public CView
  9. {
  10. protected: // create from serialization only
  11.     Clesson3View();
  12.     DECLARE_DYNCREATE(Clesson3View)
  13.  
  14. // Attributes
  15. public:
  16.     Clesson3Doc* GetDocument();
  17.  
  18.     // Our Amber channel.
  19.     channelClass *ch;
  20.  
  21.     // Our Mouse Sensor.
  22.     mouseClass *mouse;
  23.  
  24. // Operations
  25. public:
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(Clesson3View)
  30.     public:
  31.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.     virtual void OnInitialUpdate();
  33.     protected:
  34.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  35.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  36.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  37.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. public:
  42.     virtual ~Clesson3View();
  43. #ifdef _DEBUG
  44.     virtual void AssertValid() const;
  45.     virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47.  
  48. protected:
  49.  
  50. // Generated message map functions
  51. protected:
  52.     //{{AFX_MSG(Clesson3View)
  53.     afx_msg void OnSize(UINT nType, int cx, int cy);
  54.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  55.     //}}AFX_MSG
  56.     DECLARE_MESSAGE_MAP()
  57. };
  58.  
  59. #ifndef _DEBUG  // debug version in lessovw.cpp
  60. inline Clesson3Doc* Clesson3View::GetDocument()
  61.    { return (Clesson3Doc*)m_pDocument; }
  62. #endif
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65.