Fusion360-Addons/usr/Src/Interface/PropertiesViewBar.h
2021-10-31 19:39:29 +01:00

72 lines
1.8 KiB
C++

// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
#pragma once
#include "StdAfx2.h"
class CPropertiesToolBar : public CMFCToolBar
{
public:
virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
{
CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
}
virtual BOOL AllowShowOnList() const { return FALSE; }
};
class CPropertiesViewBar : public CDockablePane
{
// Construction
public:
CPropertiesViewBar();
void AdjustLayout();
// Attributes
public:
void SetVSDotNetLook(BOOL bSet)
{
m_wndPropList.SetVSDotNetLook(bSet);
m_wndPropList.SetGroupNameFullWidth(bSet);
}
void OnChangeVisualStyle();
protected:
CComboBox m_wndObjectCombo;
CPropertiesToolBar m_wndToolBar;
CMFCPropertyGridCtrl m_wndPropList;
CFont m_fntPropList;
// Implementation
public:
virtual ~CPropertiesViewBar();
protected:
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 OnProperies1();
afx_msg void OnUpdateProperies1(CCmdUI* pCmdUI);
afx_msg void OnProperies2();
afx_msg void OnUpdateProperies2(CCmdUI* pCmdUI);
afx_msg void OnExpand();
afx_msg void OnUpdateExpand(CCmdUI* pCmdUI);
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
DECLARE_MESSAGE_MAP()
void InitPropList();
void SetPropListFont();
};