MyTreeDlgBar.h
上传用户:cding2008
上传日期:2007-01-03
资源大小:1812k
文件大小:2k
- /////////////////////////////////////////////////////////////////////////////
- // CMyTreeDlgBar.h : header file; interface of the CMyDoc 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.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CMyTreeDlgBar dialog
- class CMyTreeDlgBar : public CDialogBar
- {
- // Construction
- public:
- BOOL Create( CWnd* pParentWnd, UINT nStyle, UINT nID, BOOL bChange = TRUE);
- // Operations
- public:
- void DisplayTree(C3dWorld* pWorld);
- void ClearTree();
- void InsertObject(C3dObject* pObject);
- HTREEITEM FindObject(C3dObject* pObject);
- void SelectItem(HTREEITEM hItem);
- void DisplaySelected(C3dObject* pObject);
- // Dialog Data
- //{{AFX_DATA(CMyTreeDlgBar)
- enum { IDD = IDD_DIALOG_TREE };
- //}}AFX_DATA
- // Attributes
- public:
- CMyTreeCtrl m_TreeCtrl;
- CSize m_sizeDocked;
- CSize m_sizeFloating;
- BOOL m_bChangeDockedSize; // Indicates whether to keep
- // a default size for docking
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyTreeDlgBar)
- //}}AFX_VIRTUAL
- virtual CSize CalcDynamicLayout( int nLength, DWORD dwMode );
-
- // Implementation
- private:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyTreeDlgBar)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- // User defined messages
- };
-