www.pudn.com > Daoli2.zip > DAOLI2Doc.cpp


// DAOLI2Doc.cpp : implementation of the CDAOLI2Doc class 
// 
 
#include "stdafx.h" 
#include "DAOLI2.h" 
 
#include "DAOLI2Doc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CDAOLI2Doc 
 
IMPLEMENT_DYNCREATE(CDAOLI2Doc, CDocument) 
 
BEGIN_MESSAGE_MAP(CDAOLI2Doc, CDocument) 
	//{{AFX_MSG_MAP(CDAOLI2Doc) 
		// 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(CDAOLI2Doc, CDocument) 
	//{{AFX_DISPATCH_MAP(CDAOLI2Doc) 
		// 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() 
 
// Note: we add support for IID_IDAOLI2 to support typesafe binding 
//  from VBA.  This IID must match the GUID that is attached to the  
//  dispinterface in the .ODL file. 
 
// {107FCEE5-45E0-11D5-BFB8-0080AD3A53F1} 
static const IID IID_IDAOLI2 = 
{ 0x107fcee5, 0x45e0, 0x11d5, { 0xbf, 0xb8, 0x0, 0x80, 0xad, 0x3a, 0x53, 0xf1 } }; 
 
BEGIN_INTERFACE_MAP(CDAOLI2Doc, CDocument) 
	INTERFACE_PART(CDAOLI2Doc, IID_IDAOLI2, Dispatch) 
END_INTERFACE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CDAOLI2Doc construction/destruction 
 
CDAOLI2Doc::CDAOLI2Doc() 
{ 
	// TODO: add one-time construction code here 
 
	EnableAutomation(); 
 
	AfxOleLockApp(); 
} 
 
CDAOLI2Doc::~CDAOLI2Doc() 
{ 
	AfxOleUnlockApp(); 
} 
 
BOOL CDAOLI2Doc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: add reinitialization code here 
	// (SDI documents will reuse this document) 
 
	return TRUE; 
} 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CDAOLI2Doc serialization 
 
void CDAOLI2Doc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
	} 
	else 
	{ 
		// TODO: add loading code here 
	} 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CDAOLI2Doc diagnostics 
 
#ifdef _DEBUG 
void CDAOLI2Doc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void CDAOLI2Doc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CDAOLI2Doc commands 
 
/*void CDAOLI2Doc::SetTitle(LPCTSTR lpszTitle)  
{ 
	// TODO: Add your specialized code here and/or call the base class 
	 
	//CDocument::SetTitle("Ä£ºý¿ØÖƵ¹Á¢°ÚÊÔÑé"); 
} 
*/