|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "GlobalDefine.h"
|
|
|
|
|
#include "EnumPropertieType.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CPropertiesToolBar : public CMFCToolBar
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
|
|
|
|
|
{
|
|
|
|
|
CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
|
|
|
|
|
}
|
|
|
|
|
virtual BOOL AllowShowOnList() const { return FALSE; }
|
|
|
|
|
};
|
|
|
|
|
//<2F><>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
class CPanePropertiesWnd : public CDockablePane
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CPanePropertiesWnd();
|
|
|
|
|
virtual ~CPanePropertiesWnd();
|
|
|
|
|
public:
|
|
|
|
|
void AdjustLayout();
|
|
|
|
|
void InsertGridProperty(CMFCPropertyGridProperty* pProp);
|
|
|
|
|
void SetVSDotNetLook(BOOL bSet)
|
|
|
|
|
{
|
|
|
|
|
m_wndPropList.SetVSDotNetLook(bSet);
|
|
|
|
|
m_wndPropList.SetGroupNameFullWidth(bSet);
|
|
|
|
|
}
|
|
|
|
|
void NoUseObjectCombo(){m_bUseObjectCombo = false;};//<2F><>Ҫʹ<D2AA><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
|
|
|
|
protected:
|
|
|
|
|
CFont m_fntPropList;
|
|
|
|
|
CComboBox m_wndObjectCombo;
|
|
|
|
|
CPropertiesToolBar m_wndToolBar;
|
|
|
|
|
CMFCPropertyGridCtrl m_wndPropList;
|
|
|
|
|
|
|
|
|
|
bool m_bUseObjectCombo;//ʹ<><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
|
|
|
|
protected:
|
|
|
|
|
virtual void RemoveAllProperty(){};
|
|
|
|
|
virtual void IniObjectCombo(){};
|
|
|
|
|
protected:
|
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧<><D6A7>
|
|
|
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
|
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
|
|
|
afx_msg void OnExpandAllProperties();
|
|
|
|
|
afx_msg void OnUpdateExpandAllProperties(CCmdUI* pCmdUI);
|
|
|
|
|
afx_msg void OnSortProperties();
|
|
|
|
|
afx_msg void OnUpdateSortProperties(CCmdUI* pCmdUI);
|
|
|
|
|
afx_msg void OnSetFocus(CWnd* pOldWnd);
|
|
|
|
|
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
|
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
|
void InitPropList();
|
|
|
|
|
void SetPropListFont();
|
|
|
|
|
};
|
|
|
|
|
|