home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / bin / ide / devgal.pkg / TEMPLATE / 22345 < prev    next >
Encoding:
Text File  |  1998-06-18  |  1.7 KB  |  63 lines

  1. // $$VAL:BaseViewHeader$$ : interface of the $$VAL:BaseViewClass$$ class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #ifndef $$VAL:BaseViewWrapper$$
  6. #define $$VAL:BaseViewWrapper$$
  7.  
  8. $$IF:DocClassHeader$$
  9. #include "$$VAL:DocClassHeader$$"
  10. $$ENDIF$$
  11.  
  12. class $$VAL:BaseViewClass$$ : public CView
  13. {
  14. protected: // create from serialization only
  15.     $$VAL:BaseViewClass$$();
  16.     DECLARE_DYNCREATE($$VAL:BaseViewClass$$)
  17.  
  18. // Attributes
  19. public:
  20.     $$VAL:DocClass$$* GetDocument();
  21.  
  22. // Operations
  23. public:
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL($$VAL:BaseViewClass$$)
  28.     public:
  29.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  30.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  31.     protected:
  32.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  33.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  34.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~$$VAL:BaseViewClass$$();
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG($$VAL:BaseViewClass$$)
  50.         // NOTE - the ClassWizard will add and remove member functions here.
  51.         //    DO NOT EDIT what you see in these blocks of generated code !
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. #ifndef _DEBUG  // debug version in $$VAL:BaseViewCpp$$
  57. inline $$VAL:DocClass$$* $$VAL:BaseViewClass$$::GetDocument()
  58.    { return ($$VAL:DocClass$$*)m_pDocument; }
  59. #endif
  60.  
  61. #endif        // $$VAL:BaseViewWrapper$$
  62. /////////////////////////////////////////////////////////////////////////////
  63.