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.

49 lines
1013 B

  1. #ifndef __cd172658_dfdf_459d_850b_74ccd8a3053e__
  2. #define __cd172658_dfdf_459d_850b_74ccd8a3053e__
  3. #include <windows.h>
  4. #include "findfile.h"
  5. #include "simarray.h"
  6. class CFindImageFiles
  7. {
  8. private:
  9. CSimpleDynamicArray<CSimpleString> m_ImageFiles;
  10. int m_nCurrentFile;
  11. private:
  12. CFindImageFiles( const CFindImageFiles & );
  13. CFindImageFiles &operator=( const CFindImageFiles & );
  14. public:
  15. CFindImageFiles(void);
  16. virtual ~CFindImageFiles(void);
  17. bool NextFile( CSimpleString &strFilename );
  18. bool PreviousFile( CSimpleString &strFilename );
  19. bool FoundFile( LPCTSTR pszFilename )
  20. {
  21. if (pszFilename)
  22. {
  23. m_ImageFiles.Append(pszFilename);
  24. }
  25. return true;
  26. }
  27. void Reset(void)
  28. {
  29. m_nCurrentFile = 0;
  30. }
  31. int Count(void) const
  32. {
  33. return(m_ImageFiles.Size());
  34. }
  35. CSimpleString operator[](int nIndex)
  36. {
  37. return(m_ImageFiles[nIndex]);
  38. }
  39. };
  40. #endif