home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c07 / treelist / listview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  57 lines

  1. // SimpleListView.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CSimpleListView view
  6.  
  7. class CSimpleListView : public CListView
  8. {
  9. protected:
  10.     CSimpleListView();           // protected constructor used by dynamic creation
  11.     DECLARE_DYNCREATE(CSimpleListView)
  12.  
  13. // Attributes
  14. public:
  15.  
  16. // Operations
  17. public:
  18.     CTreeDoc* GetDocument();
  19.  
  20. // Overrides
  21.     // ClassWizard generated virtual function overrides
  22.     //{{AFX_VIRTUAL(CSimpleListView)
  23.     public:
  24.     virtual void OnInitialUpdate();
  25.     //}}AFX_VIRTUAL
  26.  
  27. // Implementation
  28.  
  29. public:
  30.     void DisplayClassInfo(const HTREEITEM);
  31.     void DisplayTypeInfo(const HTREEITEM);
  32.     void DisplayAnimalInfo(const DWORD);
  33.     void EraseList();
  34.  
  35. protected:
  36.     virtual ~CSimpleListView();
  37.     void DisplayChildren(char **, const HTREEITEM);
  38.  
  39. #ifdef _DEBUG
  40.     virtual void AssertValid() const;
  41.     virtual void Dump(CDumpContext& dc) const;
  42. #endif
  43.  
  44.     // Generated message map functions
  45. protected:
  46.     //{{AFX_MSG(CSimpleListView)
  47.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. };
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. #ifndef _DEBUG  // debug version in SimpleTreeView.cpp
  54. inline CTreeDoc* CSimpleListView::GetDocument()
  55.    { return (CTreeDoc*)m_pDocument; }
  56. #endif
  57.