home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / SAMPLES / MINSVR / MINDOC.CP_ / MINDOC.CP
Encoding:
Text File  |  1993-02-08  |  930 b   |  32 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and Microsoft
  7. // WinHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. #include "stdafx.h"
  12. #include "minsvr.h"
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // OLE Server Document functionality
  16.  
  17. // Disable excessive compiler warning
  18. #pragma warning(disable: 4355)  // this used in base initializer list
  19.  
  20. CMinDoc::CMinDoc()
  21.     : m_item(this)
  22. {
  23. }
  24.  
  25. COleServerItem* CMinDoc::OnGetEmbeddedItem()
  26. {
  27.     ASSERT(m_docItemList.GetCount() == 1);
  28.     return &m_item;
  29. }
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32.