workbar.h
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:2k
- #include <afxole.h>
- #include "sizecbar.h"
- #define TREE_PROJECT_ITEM 10000
- #define TREE_FILE_ITEM 20000
- #define TREE_LAYER_ITEM 30000
- #define ICON_PROJECT 0
- #define ICON_FILE 1
- #define ICON_LAYER 2
- #define ICON_CURRENTLAYER 3
- #define ICON_LOCKLAYER 4
- #define ICON_CURRENTLOCKLAYER 5
- #define ICON_HIDELAYER 6
- #define ICON_CURRENTHIDELAYER 7
- #define ICON_LOCKHIDELAYER 8
- #define ICON_CURRENTLOCKHIDELAYER 9
- /////////////////////////////////////////////////////////////////////////////
- class CProjectTree : public CTreeCtrl
- {
- public:
- void InsertProject(CString name);
- HTREEITEM InsertFile(CString name);
- HTREEITEM InsertLayer(HTREEITEM fileitem, CString name, UINT nIocn);
- HTREEITEM FindFileItem(CString name);
- HTREEITEM FindLayerItem(HTREEITEM fileitem, CString layername);
- };
- // CMyWorkBar window
- class CMyWorkBar : public CSizingControlBar
- {
- // Construction
- public:
- CMyWorkBar();
- // Attributes
- public:
- CProjectTree* pTree;
- CListCtrl* pList;
- protected:
- CTabCtrl m_wndTab;
- CProjectTree m_wndTree;
- CListCtrl m_wndList;
- CFont m_font;
- // Overridables
- virtual void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyWorkBar)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMyWorkBar();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyWorkBar)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////