www.pudn.com > Imagepro_4.rar > ImageproDoc.cpp
// ImageproDoc.cpp : implementation of the CImageproDoc class
//
#include "stdafx.h"
#include "Imagepro.h"
#include "ImageproDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CImageproDoc
IMPLEMENT_DYNCREATE(CImageproDoc, CDocument)
BEGIN_MESSAGE_MAP(CImageproDoc, CDocument)
//{{AFX_MSG_MAP(CImageproDoc)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CImageproDoc construction/destruction
CImageproDoc::CImageproDoc()
{
// TODO: add one-time construction code here
bopendoc=false;
bNewImage=false;
}
CImageproDoc::~CImageproDoc()
{
}
BOOL CImageproDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CImageproDoc serialization
void CImageproDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CImageproDoc diagnostics
#ifdef _DEBUG
void CImageproDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CImageproDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CImageproDoc commands
BOOL CImageproDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
if (!CDocument::OnOpenDocument(lpszPathName))
return FALSE;
bopendoc=true;
strfilename=lpszPathName;
strfirst=lpszPathName;
// TODO: Add your specialized creation code here
return TRUE;
}