home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK11 / MFC / SAMPLES / MINSVR / MINDOC.CP$ / mindoc
Encoding:
Text File  |  1992-03-16  |  1.0 KB  |  43 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. // QuickHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. #include "minsvr.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // OLE Server functionality
  15.  
  16. COleServerItem* CMinDoc::OnGetDocument()
  17. {
  18.     return &m_item;
  19. }
  20.  
  21. COleServerItem* CMinDoc::OnGetItem(LPCSTR)
  22. {
  23.     // embedded only server - no linked items
  24.     return NULL;
  25. }
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28.  
  29. COleServerItem* CMinDoc::GetNextItem(POSITION& rPosition)
  30. {
  31.     if (rPosition == NULL)
  32.     {
  33.         rPosition = (POSITION) 1;
  34.         return &m_item;
  35.     }
  36.     else
  37.     {
  38.         return NULL;
  39.     }
  40. }
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43.