home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / addins / wins / dirlist.h < prev    next >
C/C++ Source or Header  |  1998-04-08  |  827b  |  30 lines

  1. // DirList.h: interface for the CDirList class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_DIRLIST_H__9C9E8F4C_A970_11D0_8CAF_000000000000__INCLUDED_)
  6. #define AFX_DIRLIST_H__9C9E8F4C_A970_11D0_8CAF_000000000000__INCLUDED_
  7.  
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11.  
  12. #include <afxtempl.h>
  13. #include "FileItem.h"
  14.  
  15. class CDirList : public CObject  
  16. {
  17. public:
  18.     void Reset();
  19.     int Count();
  20.     CFileItem * GetNextPos(POSITION& p);
  21.     POSITION GetHeadPosition();
  22.     BOOL FAddDir(LPCTSTR strDir, LPCTSTR strFile, CRect& rectWnd, BOOL fInDebugger, BOOL fTouch = TRUE);
  23.     CDirList();
  24.     virtual ~CDirList();
  25.     CList<CFileItem *, CFileItem *> m_dirList;
  26. protected:
  27. };
  28.  
  29. #endif // !defined(AFX_DIRLIST_H__9C9E8F4C_A970_11D0_8CAF_000000000000__INCLUDED_)
  30.