home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c07 / form / formdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.2 KB  |  53 lines

  1. // FormDoc.h : interface of the CFormDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CFormDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CFormDoc();
  9.     DECLARE_DYNCREATE(CFormDoc)
  10.  
  11. // Attributes
  12. public:
  13.     COLORREF GetColor() const { return m_color; }
  14.     void SetColor(COLORREF c) { m_color = c; }
  15.     CString GetPhrase() const { return m_phrase; }
  16.     void SetPhrase(CString s) { m_phrase = s; }
  17.  
  18. protected:    
  19.     CString m_phrase;
  20.     COLORREF m_color;
  21.  
  22. // Operations
  23. public:
  24.  
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(CFormDoc)
  28.     public:
  29.     virtual BOOL OnNewDocument();
  30.     virtual void Serialize(CArchive& ar);
  31.     //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.     virtual ~CFormDoc();
  36. #ifdef _DEBUG
  37.     virtual void AssertValid() const;
  38.     virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40.  
  41. protected:
  42.  
  43. // Generated message map functions
  44. protected:
  45.     //{{AFX_MSG(CFormDoc)
  46.         // NOTE - the ClassWizard will add and remove member functions here.
  47.         //    DO NOT EDIT what you see in these blocks of generated code !
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. };
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.