Alientech 0.01
An extendable game engine
C:/Alientech/AlienPlanets/ClassView.h
Go to the documentation of this file.
00001 
00002 #pragma once
00003 
00004 #include "ViewTree.h"
00005 
00006 class CClassToolBar : public CMFCToolBar
00007 {
00008         virtual void OnUpdateCmdUI(CFrameWnd* /*pTarget*/, BOOL bDisableIfNoHndler)
00009         {
00010                 CMFCToolBar::OnUpdateCmdUI((CFrameWnd*) GetOwner(), bDisableIfNoHndler);
00011         }
00012 
00013         virtual BOOL AllowShowOnList() const { return FALSE; }
00014 };
00015 
00016 class CClassView : public CDockablePane
00017 {
00018 public:
00019         CClassView();
00020         virtual ~CClassView();
00021 
00022         void AdjustLayout();
00023         void OnChangeVisualStyle();
00024 
00025 protected:
00026         CClassToolBar m_wndToolBar;
00027         CViewTree m_wndClassView;
00028         CImageList m_ClassViewImages;
00029         UINT m_nCurrSort;
00030 
00031         void FillClassView();
00032 
00033 // Overrides
00034 public:
00035         virtual BOOL PreTranslateMessage(MSG* pMsg);
00036 
00037 protected:
00038         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00039         afx_msg void OnSize(UINT nType, int cx, int cy);
00040         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00041         afx_msg void OnClassAddMemberFunction();
00042         afx_msg void OnClassAddMemberVariable();
00043         afx_msg void OnClassDefinition();
00044         afx_msg void OnClassProperties();
00045         afx_msg void OnNewFolder();
00046         afx_msg void OnPaint();
00047         afx_msg void OnSetFocus(CWnd* pOldWnd);
00048         afx_msg LRESULT OnChangeActiveTab(WPARAM, LPARAM);
00049         afx_msg void OnSort(UINT id);
00050         afx_msg void OnUpdateSort(CCmdUI* pCmdUI);
00051 
00052         DECLARE_MESSAGE_MAP()
00053 };
00054