提交 | 用户 | age
|
0ed438
|
1 |
// CMTerm2BnlView.cpp: 实现文件
|
Q |
2 |
//
|
|
3 |
|
|
4 |
#include "pch.h"
|
|
5 |
#include "MTerm2.h"
|
|
6 |
#include "MTerm2BnlView.h"
|
|
7 |
#include "MTerm2Doc.h"
|
|
8 |
|
|
9 |
// CMTerm2BnlView
|
|
10 |
|
|
11 |
IMPLEMENT_DYNCREATE(CMTerm2BnlView, CEditView)
|
|
12 |
|
|
13 |
CMTerm2BnlView::CMTerm2BnlView()
|
|
14 |
{
|
|
15 |
|
|
16 |
}
|
|
17 |
|
|
18 |
CMTerm2BnlView::~CMTerm2BnlView()
|
|
19 |
{
|
|
20 |
}
|
|
21 |
|
|
22 |
|
|
23 |
BEGIN_MESSAGE_MAP(CMTerm2BnlView, CEditView)
|
|
24 |
END_MESSAGE_MAP()
|
|
25 |
|
|
26 |
|
|
27 |
// CMTerm2BnlView 绘图
|
|
28 |
|
|
29 |
void CMTerm2BnlView::OnInitialUpdate()
|
|
30 |
{
|
|
31 |
CEditView::OnInitialUpdate();
|
|
32 |
CMTerm2Doc * pDoc = (CMTerm2Doc *)GetDocument();
|
|
33 |
pDoc->ProgTxt;
|
|
34 |
// CSize sizeTotal;
|
|
35 |
// // TODO: 计算此视图的合计大小
|
|
36 |
// sizeTotal.cx = sizeTotal.cy = 100;
|
|
37 |
// SetScrollSizes(MM_TEXT, sizeTotal);
|
|
38 |
}
|
|
39 |
|
|
40 |
void CMTerm2BnlView::OnDraw(CDC* pDC)
|
|
41 |
{
|
|
42 |
CDocument* pDoc = GetDocument();
|
|
43 |
// TODO: 在此添加绘制代码
|
|
44 |
}
|
|
45 |
|
|
46 |
|
|
47 |
// CMTerm2BnlView 诊断
|
|
48 |
|
|
49 |
#ifdef _DEBUG
|
|
50 |
void CMTerm2BnlView::AssertValid() const
|
|
51 |
{
|
|
52 |
CEditView::AssertValid();
|
|
53 |
}
|
|
54 |
|
|
55 |
#ifndef _WIN32_WCE
|
|
56 |
void CMTerm2BnlView::Dump(CDumpContext& dc) const
|
|
57 |
{
|
|
58 |
CEditView::Dump(dc);
|
|
59 |
}
|
|
60 |
#endif
|
|
61 |
#endif //_DEBUG
|
|
62 |
|
|
63 |
|
|
64 |
// CMTerm2BnlView 消息处理程序
|