-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path3DCodePane.h
93 lines (76 loc) · 1.63 KB
/
3DCodePane.h
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#pragma once
/**
* @file C3DCodePane.h
* @brief 面板基类
* @details 这是一个包含对话框控件的CDockablePane,对话框上面有滚动视图。
* 修改此文件将会影响3dcode和InvisibleCode两个项目。
* 2015年12月11日特此说明。
*/
class CViewParent;
class CPaneScrollView;
/// 滚动视图的ID
#define ID_ENCODE_VIEW 9999
/**
* @class C3DCodePane
* @brief 面板基类
*/
class C3DCodePane : public CDockablePane
{
DECLARE_DYNAMIC(C3DCodePane)
public:
/// 视图的父框架
CViewParent* m_pViewParent;
/// 编码视图面板
CPaneScrollView* m_pEncodeView;
public:
C3DCodePane();
virtual ~C3DCodePane();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
/**
* @class CViewParent
* @brief 视图的父框架
*/
class CViewParent : public CFrameWnd
{
DECLARE_DYNCREATE(CViewParent)
public:
CViewParent();
virtual ~CViewParent();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
/**
* @class CPaneScrollView
* @brief 面板的滚动视图
*/
class CPaneScrollView : public CScrollView
{
DECLARE_DYNCREATE(CPaneScrollView)
public:
CSize m_szChildSize;
CWnd* m_pChildWnd;
void AddChildWnd(CWnd* pChild, int nWidth = 100, int nHeight = 100);
CPaneScrollView();
virtual ~CPaneScrollView();
public:
#ifdef _DEBUG
virtual void AssertValid() const;
#ifndef _WIN32_WCE
virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
virtual void OnInitialUpdate(); // 构造后的第一次
DECLARE_MESSAGE_MAP()
public:
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};