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

  1. // MDI2ViewsBDoc.h : interface of the CMDI2ViewsBDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CMDI2ViewsBDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CMDI2ViewsBDoc();
  9.     DECLARE_DYNCREATE(CMDI2ViewsBDoc)
  10.  
  11.         CString m_phrase;
  12.     COLORREF m_color;
  13.  
  14. // Operations
  15. public:
  16.     CString GetPhrase() const { return m_phrase; }
  17.     COLORREF GetColor() const { return m_color; }
  18.  
  19.     void SetPhrase( CString & s) { m_phrase = s; }
  20.     void SetColor( COLORREF c) { m_color = c; }
  21.  
  22. // Overrides
  23.     // ClassWizard generated virtual function overrides
  24.     //{{AFX_VIRTUAL(CMDI2ViewsBDoc)
  25.     public:
  26.     virtual BOOL OnNewDocument();
  27.     virtual void Serialize(CArchive& ar);
  28.     //}}AFX_VIRTUAL
  29.  
  30. // Implementation
  31. public:
  32.     virtual ~CMDI2ViewsBDoc();
  33. #ifdef _DEBUG
  34.     virtual void AssertValid() const;
  35.     virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37.  
  38. protected:
  39.  
  40. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CMDI2ViewsBDoc)
  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.