zxd
2023-09-14 d34256830982fb9ea822c1e9b874c3b7fa0a614d
提交 | 用户 | age
4b03ae 1 
Q 2 // MFCApplication3View.h: CMFCApplication3View 类的接口
3 //
4
5 #pragma once
6
7
8 class CMFCApplication3View : public CScrollView
9 {
10 protected: // 仅从序列化创建
11     CMFCApplication3View() noexcept;
12     DECLARE_DYNCREATE(CMFCApplication3View)
13
14 // 特性
15 public:
16     CMFCApplication3Doc* 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 void OnInitialUpdate(); // 构造后第一次调用
27     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
28     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
29     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
30
31 // 实现
32 public:
33     virtual ~CMFCApplication3View();
34 #ifdef _DEBUG
35     virtual void AssertValid() const;
36     virtual void Dump(CDumpContext& dc) const;
37 #endif
38
39 protected:
40
41 // 生成的消息映射函数
42 protected:
43     DECLARE_MESSAGE_MAP()
44 };
45
46 #ifndef _DEBUG  // MFCApplication3View.cpp 中的调试版本
47 inline CMFCApplication3Doc* CMFCApplication3View::GetDocument() const
48    { return reinterpret_cast<CMFCApplication3Doc*>(m_pDocument); }
49 #endif
50