home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / internet / ftptree / ftptrctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.4 KB  |  55 lines

  1. // FTPTrCtl.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "afxinet.h"
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CMyTreeCtrl window
  17.  
  18. class CMyTreeCtrl : public CTreeCtrl
  19. {
  20. // Construction
  21. public:
  22.     void PopulateTree(CFtpConnection* pConnection = NULL,
  23.         const CString& strDir = CString((LPCTSTR) NULL));
  24.     CMyTreeCtrl();
  25.  
  26. // Attributes
  27. public:
  28.  
  29. // Operations
  30. public:
  31.  
  32. // Overrides
  33.     // ClassWizard generated virtual function overrides
  34.     //{{AFX_VIRTUAL(CMyTreeCtrl)
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CMyTreeCtrl();
  40.  
  41.     // Generated message map functions
  42. protected:
  43.     CFtpConnection* m_pFtpConnection;
  44.     void ExploreDir(const CString& strDir, HTREEITEM hParent);
  45.  
  46.     //{{AFX_MSG(CMyTreeCtrl)
  47.     afx_msg void OnItemexpanding(NMHDR* pNMHDR, LRESULT* pResult);
  48.     afx_msg void OnDestroy();
  49.     //}}AFX_MSG
  50.  
  51.     DECLARE_MESSAGE_MAP()
  52. };
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55.