home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch19 / pad / paddoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-24  |  1.1 KB  |  50 lines

  1. // paddoc.h : interface of the CPadDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CPadDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CPadDoc();
  9.     DECLARE_DYNCREATE(CPadDoc)
  10.  
  11. // Attributes
  12. public:
  13.  
  14.     ///////////////////////
  15.     // MY CODE STARTS HERE
  16.     //////////////////////
  17.  
  18.     CString m_Subject;
  19.     CString m_Notes;
  20.  
  21.     ////////////////////
  22.     // MY CODE ENDS HERE
  23.     ////////////////////
  24.  
  25. // Operations
  26. public:
  27.  
  28. // Implementation
  29. public:
  30.     virtual ~CPadDoc();
  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. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CPadDoc)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.         //    DO NOT EDIT what you see in these blocks of generated code !
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50.