Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.0 KiB

  1. // LeftView.h : interface of the CLeftView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_LEFTVIEW_H__F23CDADF_7629_455B_AEBF_9968AB10CA64__INCLUDED_)
  5. #define AFX_LEFTVIEW_H__F23CDADF_7629_455B_AEBF_9968AB10CA64__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CFileSpyDoc;
  10. class CLeftView : public CTreeView
  11. {
  12. protected: // create from serialization only
  13. CLeftView();
  14. DECLARE_DYNCREATE(CLeftView)
  15. // Attributes
  16. public:
  17. CFileSpyDoc* GetDocument();
  18. CImageList *m_pImageList;
  19. HTREEITEM hRootItem;
  20. char nRButtonSet;
  21. // Operations
  22. public:
  23. USHORT GetAssociatedVolumeIndex(HTREEITEM hItem);
  24. HTREEITEM GetAssociatedhItem(WCHAR cDriveName);
  25. void UpdateImage(void);
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CLeftView)
  29. public:
  30. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  31. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32. protected:
  33. virtual void OnInitialUpdate(); // called first time after construct
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. virtual ~CLeftView();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. protected:
  43. // Generated message map functions
  44. protected:
  45. //{{AFX_MSG(CLeftView)
  46. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  47. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  48. afx_msg void OnMenuattach();
  49. afx_msg void OnMenudetach();
  50. afx_msg void OnMenuattachall();
  51. afx_msg void OnMenudetachall();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. #ifndef _DEBUG // debug version in LeftView.cpp
  56. inline CFileSpyDoc* CLeftView::GetDocument()
  57. { return (CFileSpyDoc*)m_pDocument; }
  58. #endif
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_LEFTVIEW_H__F23CDADF_7629_455B_AEBF_9968AB10CA64__INCLUDED_)