提交 | 用户 | age
|
4b03ae
|
1 |
|
Q |
2 |
// MultiTerminal2Doc.h: CMultiTerminal2Doc 类的接口
|
|
3 |
//
|
|
4 |
|
|
5 |
|
|
6 |
#pragma once
|
|
7 |
|
|
8 |
|
|
9 |
class CMultiTerminal2Doc : public CDocument
|
|
10 |
{
|
|
11 |
protected: // 仅从序列化创建
|
|
12 |
CMultiTerminal2Doc() noexcept;
|
|
13 |
DECLARE_DYNCREATE(CMultiTerminal2Doc)
|
|
14 |
|
|
15 |
// 特性
|
|
16 |
public:
|
|
17 |
struct stCell
|
|
18 |
{
|
|
19 |
int nType;
|
|
20 |
int bFocused = 0;
|
|
21 |
int bSelected = 0;
|
|
22 |
CString sCoilName;
|
|
23 |
};
|
|
24 |
stCell Cells[25][16] = { 1 };
|
|
25 |
// 操作
|
|
26 |
public:
|
|
27 |
|
|
28 |
// 重写
|
|
29 |
public:
|
|
30 |
virtual BOOL OnNewDocument();
|
|
31 |
virtual void Serialize(CArchive& ar);
|
|
32 |
#ifdef SHARED_HANDLERS
|
|
33 |
virtual void InitializeSearchContent();
|
|
34 |
virtual void OnDrawThumbnail(CDC& dc, LPRECT lprcBounds);
|
|
35 |
#endif // SHARED_HANDLERS
|
|
36 |
|
|
37 |
// 实现
|
|
38 |
public:
|
|
39 |
virtual ~CMultiTerminal2Doc();
|
|
40 |
#ifdef _DEBUG
|
|
41 |
virtual void AssertValid() const;
|
|
42 |
virtual void Dump(CDumpContext& dc) const;
|
|
43 |
#endif
|
|
44 |
|
|
45 |
protected:
|
|
46 |
|
|
47 |
// 生成的消息映射函数
|
|
48 |
protected:
|
|
49 |
DECLARE_MESSAGE_MAP()
|
|
50 |
|
|
51 |
#ifdef SHARED_HANDLERS
|
|
52 |
// 用于为搜索处理程序设置搜索内容的 Helper 函数
|
|
53 |
void SetSearchContent(const CString& value);
|
|
54 |
#endif // SHARED_HANDLERS
|
|
55 |
};
|