-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPropertiesViewBar.h
100 lines (82 loc) · 2.72 KB
/
PropertiesViewBar.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
94
95
96
97
98
99
100
// PropertiesViewBar.h : interface of the CPropertiesBar class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PROPERTIESVIEWBAR_H__27FC5151_A9AD_47B9_BA14_955EA72C312B__INCLUDED_)
#define AFX_PROPERTIESVIEWBAR_H__27FC5151_A9AD_47B9_BA14_955EA72C312B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
using namespace std;
class CPropertiesBar : public CBCGPDockingControlBar
{
// Construction
public:
CPropertiesBar();
void AdjustLayout ();
// Attributes
public:
BOOL bChineseOrEnglish;
CBCGPProp* m_pBasicInfo;
CBCGPProp* m_pExtensiveInfo;
CBCGPProp* m_pFatherInfo;
CBCGPProp* m_pChildGroupInfo;
CBCGPProp* m_pChildUserInfo;
CBCGPProp* m_pAccessInfo;
CBCGPProp* m_pNetworkInfo;
vector<CBCGPProp*> m_npBasicInfoItems;
vector<CBCGPProp*> m_npExtensiveInfoItems;
vector<CBCGPProp*> m_npFatherInfoItems;
vector<CBCGPProp*> m_npChildGroupInfoItems;
vector<CBCGPProp*> m_npChildUserInfoItems;
vector<CBCGPProp*> m_npAccessInfoItems;
vector<CBCGPProp*> m_npNetworkInfoItems;
public:
void addBasicProperty(CString strKey, CString strValue);
void addExtensiveProperty(CString strKey, CString strValue);
void addFatherProperty(CString strKey, CString strValue);
void addChildGroupProperty(CString strKey, CString strValue);
void addChildUserProperty(CString strKey, CString strValue);
void addAccessProperty(CString strKey, CString strValue);
void addNetworkProperty(CString strKey, CString strValue);
void clearProperties();
void updateProperties();
public:
void SetVSDotNetLook (BOOL bSet)
{
m_wndPropList.SetVSDotNetLook (bSet);
m_wndPropList.SetGroupNameFullWidth (bSet);
}
protected:
CBCGPPropList m_wndPropList;
CBCGPColor m_BorderColor;
CBCGPBrush m_FillBrush;
CBCGPBrush m_TextBrush;
// Attributes
protected:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPropertiesBar)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPropertiesBar();
// Generated message map functions
protected:
//{{AFX_MSG(CPropertiesBar)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSortingprop();
afx_msg void OnUpdateSortingprop(CCmdUI* pCmdUI);
afx_msg void OnExpand();
afx_msg void OnUpdateExpand(CCmdUI* pCmdUI);
afx_msg void OnSetFocus(CWnd* pOldWnd);
//}}AFX_MSG
afx_msg LRESULT OnCommandClicked(WPARAM, LPARAM);
afx_msg LRESULT OnMenuItemSelected(WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
void InitPropList();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PROPERTIESVIEWBAR_H__27FC5151_A9AD_47B9_BA14_955EA72C312B__INCLUDED_)