home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / textdemo / textddoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-30  |  1.2 KB  |  52 lines

  1. // TextDDoc.h : interface of the CTextDemoDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. const int NUMLINES = 42;   // number of lines stored in document and
  6.                            // displayed in view window
  7.  
  8. class CTextDemoDoc : public CDocument
  9. {
  10. public:
  11.    COLORREF m_Color;
  12.    CString m_LineTable [NUMLINES];              
  13.    CFont m_Font;
  14.  
  15. protected: // create from serialization only
  16.    CTextDemoDoc();
  17.    DECLARE_DYNCREATE(CTextDemoDoc)
  18.  
  19. // Attributes
  20. public:
  21.  
  22. // Operations
  23. public:
  24.  
  25. // Overrides
  26.    // ClassWizard generated virtual function overrides
  27.    //{{AFX_VIRTUAL(CTextDemoDoc)
  28.    public:
  29.    virtual BOOL OnNewDocument();
  30.    virtual void Serialize(CArchive& ar);
  31.    //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.    virtual ~CTextDemoDoc();
  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(CTextDemoDoc)
  46.    afx_msg void OnOptionsFont();
  47.    //}}AFX_MSG
  48.    DECLARE_MESSAGE_MAP()
  49. };
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52.