home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch05 / var / vardoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-19  |  1.1 KB  |  51 lines

  1. // vardoc.h : interface of the CVarDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CVarDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CVarDoc();
  9.     DECLARE_DYNCREATE(CVarDoc)
  10.  
  11. // Attributes
  12. public:
  13.  
  14.  
  15.     //////////////////////
  16.     // MY CODE STARTS HERE
  17.     //////////////////////
  18.  
  19.     CString m_MyVar;
  20.  
  21.     ////////////////////
  22.     // MY CODE ENDS HERE
  23.     ////////////////////
  24.  
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Implementation
  30. public:
  31.     virtual ~CVarDoc();
  32.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  33. #ifdef _DEBUG
  34.     virtual void AssertValid() const;
  35.     virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37.  
  38. protected:
  39.     virtual BOOL OnNewDocument();
  40.  
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CVarDoc)
  44.         // NOTE - the ClassWizard will add and remove member functions here.
  45.         //    DO NOT EDIT what you see in these blocks of generated code !
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48. };
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51.