home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / MFC / SAMPLES / VIEWEX / MAINDOC.H_ / MAINDOC.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.2 KB  |  43 lines

  1. // maindoc.h : interface of the CMainDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and Microsoft
  9. // QuickHelp and/or WinHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13.  
  14.  
  15. class CMainDoc : public CDocument
  16. {
  17. protected: // create from serialization only
  18.     CMainDoc();
  19.     DECLARE_SERIAL(CMainDoc)
  20.  
  21. // Attributes
  22. public:
  23.     // an example of document specific data
  24.     CString m_strData;          // string text
  25.     COLORREF m_colorData;       // color for the string text
  26.  
  27. // Implementation
  28. public:
  29.     virtual ~CMainDoc();
  30.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  31. protected:
  32.     virtual BOOL    OnNewDocument();
  33.  
  34. // Generated message map functions
  35. protected:
  36.     //{{AFX_MSG(CMainDoc)
  37.     afx_msg void OnChangeData();
  38.     //}}AFX_MSG
  39.     DECLARE_MESSAGE_MAP()
  40. };
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43.