|
|
1.1 root 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: /////////////////////////////////////////////////////////////////////////////
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.