Alientech 0.01
An extendable game engine
C:/Alientech/AlienPlanets/PropertiesWnd.h
Go to the documentation of this file.
00001 
00002 #pragma once
00003 
00004 class CPropertiesToolBar : public CMFCToolBar
00005 {
00006 public:
00007         virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
00008         {
00009                 CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
00010         }
00011 
00012         virtual BOOL AllowShowOnList() const { return FALSE; }
00013 };
00014 
00015 class CPropertiesWnd : public CDockablePane
00016 {
00017 // Construction
00018 public:
00019         CPropertiesWnd();
00020 
00021         void AdjustLayout();
00022 
00023 // Attributes
00024 public:
00025         void SetVSDotNetLook(BOOL bSet)
00026         {
00027                 m_wndPropList.SetVSDotNetLook(bSet);
00028                 m_wndPropList.SetGroupNameFullWidth(bSet);
00029         }
00030 
00031 protected:
00032         CFont m_fntPropList;
00033         CComboBox m_wndObjectCombo;
00034         CPropertiesToolBar m_wndToolBar;
00035         CMFCPropertyGridCtrl m_wndPropList;
00036 
00037 // Implementation
00038 public:
00039         virtual ~CPropertiesWnd();
00040 
00041 protected:
00042         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00043         afx_msg void OnSize(UINT nType, int cx, int cy);
00044         afx_msg void OnExpandAllProperties();
00045         afx_msg void OnUpdateExpandAllProperties(CCmdUI* pCmdUI);
00046         afx_msg void OnSortProperties();
00047         afx_msg void OnUpdateSortProperties(CCmdUI* pCmdUI);
00048         afx_msg void OnProperties1();
00049         afx_msg void OnUpdateProperties1(CCmdUI* pCmdUI);
00050         afx_msg void OnProperties2();
00051         afx_msg void OnUpdateProperties2(CCmdUI* pCmdUI);
00052         afx_msg void OnSetFocus(CWnd* pOldWnd);
00053         afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
00054 
00055         DECLARE_MESSAGE_MAP()
00056 
00057         void InitPropList();
00058         void SetPropListFont();
00059 };
00060