-
Notifications
You must be signed in to change notification settings - Fork 6
/
SparkEditView.cpp
101 lines (77 loc) · 2.19 KB
/
SparkEditView.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// SparkEditView.cpp : implementation of the CSparkEditView class
//
#include "stdafx.h"
#include "SparkEdit.h"
#include "SparkEditDoc.h"
#include "SparkEditView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSparkEditView
IMPLEMENT_DYNCREATE(CSparkEditView, CView)
BEGIN_MESSAGE_MAP(CSparkEditView, CView)
//{{AFX_MSG_MAP(CSparkEditView)
//}}AFX_MSG_MAP
// Standard printing commands
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()
/////////////////////////////////////////////////////////////////////////////
// CSparkEditView construction/destruction
CSparkEditView::CSparkEditView()
{
}
CSparkEditView::~CSparkEditView()
{
}
BOOL CSparkEditView::PreCreateWindow(CREATESTRUCT& cs)
{
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CSparkEditView drawing
void CSparkEditView::OnDraw(CDC* pDC)
{
CSparkEditDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
}
/////////////////////////////////////////////////////////////////////////////
// CSparkEditView printing
BOOL CSparkEditView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CSparkEditView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
}
void CSparkEditView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
}
/////////////////////////////////////////////////////////////////////////////
// CSparkEditView diagnostics
#ifdef _DEBUG
void CSparkEditView::AssertValid() const
{
CView::AssertValid();
}
void CSparkEditView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CSparkEditDoc* CSparkEditView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSparkEditDoc)));
return (CSparkEditDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CSparkEditView message handlers
void CSparkEditView::OnInitialUpdate()
{
CView::OnInitialUpdate();
}