windows-nt/Source/XPSP1/NT/shell/ext/sshow/findimgs.h
2020-09-26 16:20:57 +08:00

50 lines
1,013 B
C++

#ifndef __cd172658_dfdf_459d_850b_74ccd8a3053e__
#define __cd172658_dfdf_459d_850b_74ccd8a3053e__
#include <windows.h>
#include "findfile.h"
#include "simarray.h"
class CFindImageFiles
{
private:
CSimpleDynamicArray<CSimpleString> m_ImageFiles;
int m_nCurrentFile;
private:
CFindImageFiles( const CFindImageFiles & );
CFindImageFiles &operator=( const CFindImageFiles & );
public:
CFindImageFiles(void);
virtual ~CFindImageFiles(void);
bool NextFile( CSimpleString &strFilename );
bool PreviousFile( CSimpleString &strFilename );
bool FoundFile( LPCTSTR pszFilename )
{
if (pszFilename)
{
m_ImageFiles.Append(pszFilename);
}
return true;
}
void Reset(void)
{
m_nCurrentFile = 0;
}
int Count(void) const
{
return(m_ImageFiles.Size());
}
CSimpleString operator[](int nIndex)
{
return(m_ImageFiles[nIndex]);
}
};
#endif