home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / SAMPLES / HIERSVR / SVRDOC.H_ / SVRDOC.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.3 KB  |  51 lines

  1. // svrdoc.h : interface of the CServerDoc 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. class CServerItem;
  15.  
  16. class CServerDoc : public COleServerDoc
  17. {
  18. protected: // create from serialization only
  19.     CServerDoc();
  20.     DECLARE_SERIAL(CServerDoc)
  21.  
  22. // Attributes
  23. public:
  24.     CServerItem*    m_pRoot;
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Implementation
  30. public:
  31.     virtual COleServerItem* OnGetEmbeddedItem();
  32.     virtual ~CServerDoc();
  33.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  34.     virtual void DeleteContents();
  35.  
  36. #ifdef _DEBUG
  37.     virtual void AssertValid() const;
  38.     virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40. protected:
  41.     virtual BOOL    OnNewDocument();
  42.  
  43. // Generated message map functions
  44. protected:
  45.     //{{AFX_MSG(CServerDoc)
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48. };
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51.