提交 | 用户 | age
4b03ae 1 
Q 2 // MFCApplication3Doc.h: CMFCApplication3Doc 类的接口
3 //
4
5
6 #pragma once
7
8
9 class CMFCApplication3Doc : public CDocument
10 {
11 protected: // 仅从序列化创建
12     CMFCApplication3Doc() noexcept;
13     DECLARE_DYNCREATE(CMFCApplication3Doc)
14
15 // 特性
16 public:
17
18 // 操作
19 public:
20
21 // 重写
22 public:
23     virtual BOOL OnNewDocument();
24     virtual void Serialize(CArchive& ar);
25 #ifdef SHARED_HANDLERS
26     virtual void InitializeSearchContent();
27     virtual void OnDrawThumbnail(CDC& dc, LPRECT lprcBounds);
28 #endif // SHARED_HANDLERS
29
30 // 实现
31 public:
32     virtual ~CMFCApplication3Doc();
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     DECLARE_MESSAGE_MAP()
43
44 #ifdef SHARED_HANDLERS
45     // 用于为搜索处理程序设置搜索内容的 Helper 函数
46     void SetSearchContent(const CString& value);
47 #endif // SHARED_HANDLERS
48 };