home *** CD-ROM | disk | FTP | other *** search
- // ole_vdoc.cpp : implementation of the COle_vbxDoc class
- //
-
- #include "stdafx.h"
- #include "ole_vbx.h"
-
- #include "ole_vdoc.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // COle_vbxDoc
-
- IMPLEMENT_DYNCREATE(COle_vbxDoc, CDocument)
-
- BEGIN_MESSAGE_MAP(COle_vbxDoc, CDocument)
- //{{AFX_MSG_MAP(COle_vbxDoc)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- BEGIN_DISPATCH_MAP(COle_vbxDoc, CDocument)
- //{{AFX_DISPATCH_MAP(COle_vbxDoc)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_DISPATCH_MAP
- END_DISPATCH_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // COle_vbxDoc construction/destruction
-
- COle_vbxDoc::COle_vbxDoc()
- {
- EnableAutomation();
-
- // TODO: add one-time construction code here
-
- AfxOleLockApp();
- }
-
- COle_vbxDoc::~COle_vbxDoc()
- {
- AfxOleUnlockApp();
- }
-
- BOOL COle_vbxDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
-
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
-
- return TRUE;
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // COle_vbxDoc serialization
-
- void COle_vbxDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // COle_vbxDoc diagnostics
-
- #ifdef _DEBUG
- void COle_vbxDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
-
- void COle_vbxDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // COle_vbxDoc commands
-