www.pudn.com > JPGGIF.zip > picturedemoDoc.cpp


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