-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkerManagerView.cpp
More file actions
105 lines (77 loc) · 2.15 KB
/
WorkerManagerView.cpp
File metadata and controls
105 lines (77 loc) · 2.15 KB
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
102
103
104
105
// WorkerManagerView.cpp: CWorkerManagerView 类的实现
//
#include "pch.h"
#include "framework.h"
// SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的
// ATL 项目中进行定义,并允许与该项目共享文档代码。
#ifndef SHARED_HANDLERS
#include "WorkerManager.h"
#endif
#include "WorkerManagerDoc.h"
#include "WorkerManagerView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CWorkerManagerView
IMPLEMENT_DYNCREATE(CWorkerManagerView, CView)
BEGIN_MESSAGE_MAP(CWorkerManagerView, 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()
// CWorkerManagerView 构造/析构
CWorkerManagerView::CWorkerManagerView() noexcept
{
// TODO: 在此处添加构造代码
}
CWorkerManagerView::~CWorkerManagerView()
{
}
BOOL CWorkerManagerView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改
// CREATESTRUCT cs 来修改窗口类或样式
return CView::PreCreateWindow(cs);
}
// CWorkerManagerView 绘图
void CWorkerManagerView::OnDraw(CDC* /*pDC*/)
{
CWorkerManagerDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
// TODO: 在此处为本机数据添加绘制代码
}
// CWorkerManagerView 打印
BOOL CWorkerManagerView::OnPreparePrinting(CPrintInfo* pInfo)
{
// 默认准备
return DoPreparePrinting(pInfo);
}
void CWorkerManagerView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 添加额外的打印前进行的初始化过程
}
void CWorkerManagerView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: 添加打印后进行的清理过程
}
// CWorkerManagerView 诊断
#ifdef _DEBUG
void CWorkerManagerView::AssertValid() const
{
CView::AssertValid();
}
void CWorkerManagerView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CWorkerManagerDoc* CWorkerManagerView::GetDocument() const // 非调试版本是内联的
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CWorkerManagerDoc)));
return (CWorkerManagerDoc*)m_pDocument;
}
#endif //_DEBUG
// CWorkerManagerView 消息处理程序