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