www.pudn.com > c++或C下如何使用多线程.zip > TrdDemoDoc.cpp


// TrdDemoDoc.cpp : implementation of the CTrdDemoDoc class 
// 
 
#include "stdafx.h" 
#include "TrdDemo.h" 
 
#include "TrdDemoDoc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CTrdDemoDoc 
 
IMPLEMENT_DYNCREATE(CTrdDemoDoc, CDocument) 
 
BEGIN_MESSAGE_MAP(CTrdDemoDoc, CDocument) 
	//{{AFX_MSG_MAP(CTrdDemoDoc) 
		// 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() 
 
///////////////////////////////////////////////////////////////////////////// 
// CTrdDemoDoc construction/destruction 
 
CTrdDemoDoc::CTrdDemoDoc() 
{ 
	// TODO: add one-time construction code here 
 
} 
 
CTrdDemoDoc::~CTrdDemoDoc() 
{ 
} 
 
BOOL CTrdDemoDoc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: add reinitialization code here 
	// (SDI documents will reuse this document) 
 
	return TRUE; 
} 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CTrdDemoDoc serialization 
 
void CTrdDemoDoc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
	} 
	else 
	{ 
		// TODO: add loading code here 
	} 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CTrdDemoDoc diagnostics 
 
#ifdef _DEBUG 
void CTrdDemoDoc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void CTrdDemoDoc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CTrdDemoDoc commands