Source code of Windows XP (NT5)
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.

69 lines
1.8 KiB

  1. // LeftView.h : interface of the CLeftView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_LEFTVIEW_H__DBCC210E_E89D_4DC3_A848_899355925C06__INCLUDED_)
  5. #define AFX_LEFTVIEW_H__DBCC210E_E89D_4DC3_A848_899355925C06__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CNcbrowseDoc;
  10. class CLeftView : public CTreeView
  11. {
  12. protected: // create from serialization only
  13. CLeftView();
  14. DECLARE_DYNCREATE(CLeftView)
  15. // Attributes
  16. public:
  17. CNcbrowseDoc* GetDocument();
  18. // Operations
  19. public:
  20. // Overrides
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CLeftView)
  23. public:
  24. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  25. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  26. protected:
  27. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  28. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  29. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  30. virtual void OnInitialUpdate(); // called first time after construct
  31. //}}AFX_VIRTUAL
  32. // Implementation
  33. public:
  34. virtual ~CLeftView();
  35. #ifdef _DEBUG
  36. virtual void AssertValid() const;
  37. virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39. protected:
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CLeftView)
  43. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  44. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. #ifndef _DEBUG // debug version in LeftView.cpp
  49. inline CNcbrowseDoc* CLeftView::GetDocument()
  50. { return (CNcbrowseDoc*)m_pDocument; }
  51. #endif
  52. /////////////////////////////////////////////////////////////////////////////
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_LEFTVIEW_H__DBCC210E_E89D_4DC3_A848_899355925C06__INCLUDED_)