www.pudn.com > mischat.rar > PropertiesViewBar.h
// PropertiesViewBar.h: interface for the CPropertiesViewBar class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PROPERTIESVIEWBAR_H__91E4A4A8_1AD0_450E_841C_409767044A55__INCLUDED_)
#define AFX_PROPERTIESVIEWBAR_H__91E4A4A8_1AD0_450E_841C_409767044A55__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPropertiesToolBar : public CBCGPToolBar
{
public:
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
{
CBCGPToolBar::OnUpdateCmdUI ((CFrameWnd*) GetOwner (), bDisableIfNoHndler);
}
virtual BOOL AllowShowOnList () const { return FALSE; }
};
class CMYBCGPPropList : public CBCGPPropList
{
public:
virtual void OnPropertyChanged(CBCGPProp*pProp)const;
};
class CPropertiesViewBar : public CBCGPDockingControlBar
{
// Construction
public:
CPropertiesViewBar();
void AdjustLayout ();
BOOL IsHideInAutoHideMode () const {return TRUE;}
void RefreshPropList();
// Attributes
public:
void SetVSDotNetLook (BOOL bSet)
{
m_wndPropList.SetVSDotNetLook (bSet);
m_wndPropList.SetGroupNameFullWidth (bSet);
}
CComboBox m_wndObjectCombo;
CMYBCGPPropList m_wndPropList;
protected:
CPropertiesToolBar m_wndToolBar;
CFont m_fntPropList;
// Attributes
protected:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPropertiesViewBar)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPropertiesViewBar();
// Generated message map functions
protected:
//{{AFX_MSG(CPropertiesViewBar)
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 OnPaint();
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
afx_msg void OnComboSelChange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
void InitPropList ();
void SetPropListFont ();
};
#endif // !defined(AFX_PROPERTIESVIEWBAR_H__91E4A4A8_1AD0_450E_841C_409767044A55__INCLUDED_)