PrintPreviewDoc.cpp
上传用户:cskgc_123
上传日期:2007-01-04
资源大小:56k
文件大小:2k
- // PrintPreviewDoc.cpp : implementation of the CPrintPreviewDoc class
- //
- #include "stdafx.h"
- #include "PrintPreview.h"
- #include "PrintPreviewDoc.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CPrintPreviewDoc
- IMPLEMENT_DYNCREATE(CPrintPreviewDoc, CDocument)
- BEGIN_MESSAGE_MAP(CPrintPreviewDoc, CDocument)
- //{{AFX_MSG_MAP(CPrintPreviewDoc)
- // 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()
- /////////////////////////////////////////////////////////////////////////////
- // CPrintPreviewDoc construction/destruction
- CPrintPreviewDoc::CPrintPreviewDoc()
- {
- // TODO: add one-time construction code here
- }
- CPrintPreviewDoc::~CPrintPreviewDoc()
- {
- }
- BOOL CPrintPreviewDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- return TRUE;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CPrintPreviewDoc serialization
- void CPrintPreviewDoc::Serialize(CArchive& ar)
- {
- // CEditView contains an edit control which handles all serialization
- ((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CPrintPreviewDoc diagnostics
- #ifdef _DEBUG
- void CPrintPreviewDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
- void CPrintPreviewDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CPrintPreviewDoc commands