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
 
// MFCApplication3View.h: CMFCApplication3View 类的接口
//
 
#pragma once
 
 
class CMFCApplication3View : public CScrollView
{
protected: // 仅从序列化创建
    CMFCApplication3View() noexcept;
    DECLARE_DYNCREATE(CMFCApplication3View)
 
// 特性
public:
    CMFCApplication3Doc* GetDocument() const;
 
// 操作
public:
 
// 重写
public:
    virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
    virtual void OnInitialUpdate(); // 构造后第一次调用
    virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
    virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
    virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
 
// 实现
public:
    virtual ~CMFCApplication3View();
#ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
#endif
 
protected:
 
// 生成的消息映射函数
protected:
    DECLARE_MESSAGE_MAP()
};
 
#ifndef _DEBUG  // MFCApplication3View.cpp 中的调试版本
inline CMFCApplication3Doc* CMFCApplication3View::GetDocument() const
   { return reinterpret_cast<CMFCApplication3Doc*>(m_pDocument); }
#endif