// SDIView.cpp : CSDIView ���ʵ�� // #include "stdafx.h" #include "SDI.h" #include "SDIDoc.h" #include "SDIView.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CSDIView IMPLEMENT_DYNCREATE(CSDIView, CView) BEGIN_MESSAGE_MAP(CSDIView, CView) // ����ӡ���� ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP() // CSDIView ����/���� CSDIView::CSDIView() { // TODO: �ڴ˴���ӹ������ } CSDIView::~CSDIView() { } BOOL CSDIView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: �ڴ˴�ͨ���� CREATESTRUCT cs ���Ĵ������ // ��ʽ return CView::PreCreateWindow(cs); } // CSDIView ���� void CSDIView::OnDraw(CDC* /*pDC*/) { CSDIDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); if (!pDoc) return; // TODO: �ڴ˴�Ϊ����������ӻ��ƴ��� } // CSDIView ��ӡ BOOL CSDIView::OnPreparePrinting(CPrintInfo* pInfo) { // Ĭ���� return DoPreparePrinting(pInfo); } void CSDIView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: ��ӡǰ��Ӷ���ij�ʼ�� } void CSDIView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: ��ӡ������������ } // CSDIView ��� #ifdef _DEBUG void CSDIView::AssertValid() const { CView::AssertValid(); } void CSDIView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CSDIDoc* CSDIView::GetDocument() const // �ǵ��汾�������� { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSDIDoc))); return (CSDIDoc*)m_pDocument; } #endif //_DEBUG // CSDIView ��Ϣ�������
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)