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

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