提交 | 用户 | age
|
0ed438
|
1 |
|
Q |
2 |
// MTerm1View.h: CMTerm1View 类的接口
|
|
3 |
//
|
|
4 |
|
|
5 |
#pragma once
|
|
6 |
|
|
7 |
|
|
8 |
class CMTerm1View : public CView
|
|
9 |
{
|
|
10 |
protected: // 仅从序列化创建
|
|
11 |
CMTerm1View() noexcept;
|
|
12 |
DECLARE_DYNCREATE(CMTerm1View)
|
|
13 |
|
|
14 |
// 特性
|
|
15 |
public:
|
|
16 |
CMTerm1Doc* GetDocument() const;
|
|
17 |
|
|
18 |
// 操作
|
|
19 |
public:
|
|
20 |
|
|
21 |
// 重写
|
|
22 |
public:
|
|
23 |
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
|
|
24 |
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
|
25 |
protected:
|
|
26 |
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
|
|
27 |
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
|
|
28 |
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
|
|
29 |
|
|
30 |
// 实现
|
|
31 |
public:
|
|
32 |
virtual ~CMTerm1View();
|
|
33 |
#ifdef _DEBUG
|
|
34 |
virtual void AssertValid() const;
|
|
35 |
virtual void Dump(CDumpContext& dc) const;
|
|
36 |
#endif
|
|
37 |
|
|
38 |
protected:
|
|
39 |
|
|
40 |
// 生成的消息映射函数
|
|
41 |
protected:
|
|
42 |
afx_msg void OnFilePrintPreview();
|
|
43 |
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
|
|
44 |
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
|
|
45 |
DECLARE_MESSAGE_MAP()
|
|
46 |
};
|
|
47 |
|
|
48 |
#ifndef _DEBUG // MTerm1View.cpp 中的调试版本
|
|
49 |
inline CMTerm1Doc* CMTerm1View::GetDocument() const
|
|
50 |
{ return reinterpret_cast<CMTerm1Doc*>(m_pDocument); }
|
|
51 |
#endif
|
|
52 |
|