MyTreeCtrl.h
上传用户:cding2008
上传日期:2007-01-03
资源大小:1812k
文件大小:2k
- /////////////////////////////////////////////////////////////////////////////
- // MyTreeCtrl.h : header file; implementation of the CMyTreeCtrl class
- //
- // ModelMagic 3D and 'glOOP' (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1999
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CMyTreeCtrl floating toolbar window
- class CMyTreeCtrl : public CTreeCtrl
- {
- // Construction
- public:
- CMyTreeCtrl();
- virtual ~CMyTreeCtrl();
- // Operations
- public:
- void ExpandAllItems();
- void FillTree(C3dWorld* pWorld);
- void InsertObject(C3dObject* pObject);
- HTREEITEM FindObject(C3dObject* pObject);
- HTREEITEM FindChildObject(HTREEITEM hParentItem, C3dObject* pObject);
- protected:
- void ExpandChildItem(HTREEITEM hItem);
- void InsertChildObject(C3dObjectList* pList, TV_INSERTSTRUCT* pTVinsert, HTREEITEM hParent);
- // Attributes
- public:
- CImageList* m_pImageList;
- protected:
- C3dWorld* m_pWorld;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyTreeCtrl)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX);
- //}}AFX_VIRTUAL
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyTreeCtrl)
- afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnEndlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////