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