提交 | 用户 | age
|
0ed438
|
1 |
// MTerm2TestView.cpp: 实现文件
|
Q |
2 |
//
|
|
3 |
|
|
4 |
#include "pch.h"
|
|
5 |
#include "framework.h"
|
|
6 |
#include "MTerm2.h"
|
|
7 |
|
|
8 |
|
|
9 |
#include "MTerm2Doc.h"
|
|
10 |
#include "MTerm2TestView.h"
|
|
11 |
|
|
12 |
|
|
13 |
// CMTerm2TestView
|
|
14 |
|
|
15 |
IMPLEMENT_DYNCREATE(CMTerm2TestView, CFormView)
|
|
16 |
|
|
17 |
CMTerm2TestView::CMTerm2TestView()
|
|
18 |
: CFormView(IDD_MTerm2TestView)
|
|
19 |
{
|
|
20 |
|
|
21 |
}
|
|
22 |
|
|
23 |
CMTerm2TestView::~CMTerm2TestView()
|
|
24 |
{
|
|
25 |
}
|
|
26 |
|
|
27 |
void CMTerm2TestView::DoDataExchange(CDataExchange* pDX)
|
|
28 |
{
|
|
29 |
CFormView::DoDataExchange(pDX);
|
|
30 |
}
|
|
31 |
|
|
32 |
BEGIN_MESSAGE_MAP(CMTerm2TestView, CFormView)
|
|
33 |
END_MESSAGE_MAP()
|
|
34 |
|
|
35 |
|
|
36 |
// CMTerm2TestView 诊断
|
|
37 |
|
|
38 |
#ifdef _DEBUG
|
|
39 |
void CMTerm2TestView::AssertValid() const
|
|
40 |
{
|
|
41 |
CFormView::AssertValid();
|
|
42 |
}
|
|
43 |
|
|
44 |
#ifndef _WIN32_WCE
|
|
45 |
void CMTerm2TestView::Dump(CDumpContext& dc) const
|
|
46 |
{
|
|
47 |
CFormView::Dump(dc);
|
|
48 |
}
|
|
49 |
#endif
|
|
50 |
CMTerm2Doc* CMTerm2TestView::GetDocument() const // 非调试版本是内联的
|
|
51 |
{
|
|
52 |
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMTerm2Doc)));
|
|
53 |
return (CMTerm2Doc*)m_pDocument;
|
|
54 |
}
|
|
55 |
#endif //_DEBUG
|
|
56 |
|
|
57 |
|
|
58 |
// CMTerm2TestView 消息处理程序
|