// EdIRPrtV.cpp : implementation file // #include "stdafx.h" #include "Defines.hpp" #ifdef D_ED_IR_ACTIVE #include "EdIRPrtV.hpp" #include "EdIRBVw.hpp" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CPA_EdIR_PrintView dialog ///////////////////////////////////////////////////////////////////////////// IMPLEMENT_DYNCREATE(CPA_EdIR_PrintView, CView) BEGIN_MESSAGE_MAP(CPA_EdIR_PrintView, CView) //{{AFX_MSG_MAP(CPA_EdIR_PrintView) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() /**********************************************************************************/ CPA_EdIR_PrintView::CPA_EdIR_PrintView() { } /**********************************************************************************/ CPA_EdIR_PrintView::~CPA_EdIR_PrintView() { } ///////////////////////////////////////////////////////////////////////////// // CPA_EdIR_PrintView drawing /**********************************************************************************/ void CPA_EdIR_PrintView::OnDraw(CDC* pDC) { CDocument* pDoc = GetDocument(); // TODO: add draw code here } ///////////////////////////////////////////////////////////////////////////// // CPA_EdIR_PrintView diagnostics #ifdef _DEBUG /**********************************************************************************/ void CPA_EdIR_PrintView::AssertValid() const { CView::AssertValid(); } /**********************************************************************************/ void CPA_EdIR_PrintView::Dump(CDumpContext& dc) const { CView::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CPA_EdIR_PrintView message handlers /**********************************************************************************/ BOOL CPA_EdIR_PrintView::OnPreparePrinting(CPrintInfo* pInfo) { DoPreparePrinting(pInfo); return CView::OnPreparePrinting(pInfo); } /**********************************************************************************/ void CPA_EdIR_PrintView::OnPrint(CDC* pDC, CPrintInfo* pInfo) { m_pclDiagView->m_fn_vPrint(pDC,pInfo); } /**********************************************************************************/ void CPA_EdIR_PrintView::m_fn_vPrintPreview() { OnFilePrintPreview(); } /**********************************************************************************/ BOOL CPA_EdIR_PrintView::m_fn_bCreate(CWnd *pParent) { return CWnd::Create(NULL,NULL,AFX_WS_DEFAULT_VIEW,CRect(0,0,0,0),pParent,123456798); } /**********************************************************************************/ void CPA_EdIR_PrintView::OnEndPrintPreview(CDC* pDC,CPrintInfo* pInfo,POINT point,CPreviewView* pView) { CView::OnEndPrintPreview(pDC,pInfo,point,pView); GetParentFrame()->PostMessage(WM_SYSCOMMAND,SC_CLOSE); m_pclDiagView->m_fn_vEndPrintPreview(); } /**********************************************************************************/ void CPA_EdIR_PrintView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo) { m_pclDiagView->m_fn_vBeginPrinting(pDC,pInfo); } #endif //D_ED_IR_ACTIVE