1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #include "stdafx.h"
- #include "mfc1.h"
- #include "mfc1Doc.h"
- #include "mfc1View.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #endif
- IMPLEMENT_DYNCREATE(Cmfc1View, CView)
- BEGIN_MESSAGE_MAP(Cmfc1View, 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()
- Cmfc1View::Cmfc1View()
- {
-
- }
- Cmfc1View::~Cmfc1View()
- {
- }
- BOOL Cmfc1View::PreCreateWindow(CREATESTRUCT& cs)
- {
-
-
- return CView::PreCreateWindow(cs);
- }
- void Cmfc1View::OnDraw(CDC* )
- {
- Cmfc1Doc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- if (!pDoc)
- return;
-
- }
- BOOL Cmfc1View::OnPreparePrinting(CPrintInfo* pInfo)
- {
-
- return DoPreparePrinting(pInfo);
- }
- void Cmfc1View::OnBeginPrinting(CDC* , CPrintInfo* )
- {
-
- }
- void Cmfc1View::OnEndPrinting(CDC* , CPrintInfo* )
- {
-
- }
- #ifdef _DEBUG
- void Cmfc1View::AssertValid() const
- {
- CView::AssertValid();
- }
- void Cmfc1View::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- Cmfc1Doc* Cmfc1View::GetDocument() const
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(Cmfc1Doc)));
- return (Cmfc1Doc*)m_pDocument;
- }
- #endif
|