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

  1. // StatusBarsDoc.h : interface of the CStatusBarsDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CStatusBarsDoc : public CDocument
  6. {
  7. protected: // create from serialization only
  8.     CStatusBarsDoc();
  9.     DECLARE_DYNCREATE(CStatusBarsDoc)
  10.  
  11. // Attributes
  12. public:
  13.     CString GetPhrase() const { return m_phrase; }
  14.     void SetPhrase(CString & s) { m_phrase = s; }
  15.     COLORREF GetColor() const { return m_color; }
  16.     void SetColor(COLORREF c) { m_color = c; }
  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(CStatusBarsDoc)
  28.     public:
  29.     virtual BOOL OnNewDocument();
  30.     virtual void Serialize(CArchive& ar);
  31.     //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.     virtual ~CStatusBarsDoc();
  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(CStatusBarsDoc)
  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.