提交 | 用户 | age
|
0ed438
|
1 |
|
Q |
2 |
#pragma once
|
|
3 |
|
|
4 |
class CPropertiesToolBar : public CMFCToolBar
|
|
5 |
{
|
|
6 |
public:
|
|
7 |
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
|
|
8 |
{
|
|
9 |
CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
|
|
10 |
}
|
|
11 |
|
|
12 |
virtual BOOL AllowShowOnList() const { return FALSE; }
|
|
13 |
};
|
|
14 |
|
|
15 |
class CPropertiesWnd : public CDockablePane
|
|
16 |
{
|
|
17 |
// 构造
|
|
18 |
public:
|
|
19 |
CPropertiesWnd() noexcept;
|
|
20 |
|
|
21 |
void AdjustLayout();
|
|
22 |
|
|
23 |
// 特性
|
|
24 |
public:
|
|
25 |
void SetVSDotNetLook(BOOL bSet)
|
|
26 |
{
|
|
27 |
m_wndPropList.SetVSDotNetLook(bSet);
|
|
28 |
m_wndPropList.SetGroupNameFullWidth(bSet);
|
|
29 |
}
|
|
30 |
|
|
31 |
protected:
|
|
32 |
CFont m_fntPropList;
|
|
33 |
CComboBox m_wndObjectCombo;
|
|
34 |
CPropertiesToolBar m_wndToolBar;
|
|
35 |
CMFCPropertyGridCtrl m_wndPropList;
|
|
36 |
|
|
37 |
// 实现
|
|
38 |
public:
|
|
39 |
virtual ~CPropertiesWnd();
|
|
40 |
|
|
41 |
protected:
|
|
42 |
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
43 |
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
44 |
afx_msg void OnExpandAllProperties();
|
|
45 |
afx_msg void OnUpdateExpandAllProperties(CCmdUI* pCmdUI);
|
|
46 |
afx_msg void OnSortProperties();
|
|
47 |
afx_msg void OnUpdateSortProperties(CCmdUI* pCmdUI);
|
|
48 |
afx_msg void OnProperties1();
|
|
49 |
afx_msg void OnUpdateProperties1(CCmdUI* pCmdUI);
|
|
50 |
afx_msg void OnProperties2();
|
|
51 |
afx_msg void OnUpdateProperties2(CCmdUI* pCmdUI);
|
|
52 |
afx_msg void OnSetFocus(CWnd* pOldWnd);
|
|
53 |
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
|
|
54 |
|
|
55 |
DECLARE_MESSAGE_MAP()
|
|
56 |
|
|
57 |
void InitPropList();
|
|
58 |
void SetPropListFont();
|
|
59 |
|
|
60 |
int m_nComboHeight;
|
|
61 |
};
|
|
62 |
|