home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch14 / phn / phndoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-21  |  1.3 KB  |  59 lines

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