home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / frontend / flyEditor / LeftView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-31  |  2.7 KB  |  89 lines

  1. // LeftView.h : interface of the CLeftView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_LEFTVIEW_H__5A2CCB2D_B946_11D2_8077_D12CBD47771D__INCLUDED_)
  6. #define AFX_LEFTVIEW_H__5A2CCB2D_B946_11D2_8077_D12CBD47771D__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. class CFlyEditorDoc;
  13.  
  14. class CLeftView : public CTreeView
  15. {
  16. protected: // create from serialization only
  17.     CLeftView();
  18.     DECLARE_DYNCREATE(CLeftView)
  19.  
  20. // Attributes
  21. public:
  22.     CFlyEditorDoc* GetDocument();
  23.     CPoint mouse;
  24.     HTREEITEM SelectObject(HTREEITEM item,bsp_object *o);
  25. // Operations
  26. public:
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CLeftView)
  30.     public:
  31.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33.     protected:
  34.     virtual void OnInitialUpdate(); // called first time after construct
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CLeftView();
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CLeftView)
  50.     afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  51.     afx_msg void OnBeginlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
  52.     afx_msg void OnEndlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
  53.     afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  54.     afx_msg void OnItemexpanded(NMHDR* pNMHDR, LRESULT* pResult);
  55.     afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
  56.     afx_msg void OnEditDelete();
  57.     afx_msg void OnEditInsert();
  58.     afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI);
  59.     afx_msg void OnUpdateEditInsert(CCmdUI* pCmdUI);
  60.     afx_msg void OnEditRename();
  61.     afx_msg void OnUpdateEditRename(CCmdUI* pCmdUI);
  62.     afx_msg void OnUpdateDown(CCmdUI* pCmdUI);
  63.     afx_msg void OnDown();
  64.     afx_msg void OnUpdateUp(CCmdUI* pCmdUI);
  65.     afx_msg void OnUp();
  66.     afx_msg void OnEditCopy();
  67.     afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
  68.     afx_msg void OnEditCut();
  69.     afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
  70.     afx_msg void OnEditDuplicate();
  71.     afx_msg void OnUpdateEditDuplicate(CCmdUI* pCmdUI);
  72.     afx_msg void OnEditPaste();
  73.     afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
  74.     //}}AFX_MSG
  75.     DECLARE_MESSAGE_MAP()
  76. };
  77.  
  78. #ifndef _DEBUG  // debug version in LeftView.cpp
  79. inline CFlyEditorDoc* CLeftView::GetDocument()
  80.    { return (CFlyEditorDoc*)m_pDocument; }
  81. #endif
  82.  
  83. /////////////////////////////////////////////////////////////////////////////
  84.  
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  87.  
  88. #endif // !defined(AFX_LEFTVIEW_H__5A2CCB2D_B946_11D2_8077_D12CBD47771D__INCLUDED_)
  89.