home *** CD-ROM | disk | FTP | other *** search
- #if !defined(AFX_CSCANDIR_H__854FFFA1_77EE_11D2_9F15_00A0246D0F63__INCLUDED_)
- #define AFX_CSCANDIR_H__854FFFA1_77EE_11D2_9F15_00A0246D0F63__INCLUDED_
-
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- //
- // CScanDir.h
- //+
- // header file
- //-
- // rev 11/09/98 gls
- //
-
- /////////////////////////////////////////////////////////////////////////////
- // CScanDir window
-
- class CScanDir : public CObject
- {
- CStringArray m_rgsFile; // local list management
- CStringArray m_rgsDir;
-
-
- // Construction
- public:
- CScanDir();
-
- // Attributes
- public:
-
- int Zprintf( const char *format, ... ) { return(0); }
-
- int getFileCount( void )
- {
- return( m_rgsFile.GetSize() );
- }
-
- BOOL GetFile( CString &sFile, int iFile )
- {
- sFile = "";
-
- if( (0 <= iFile) && (iFile < m_rgsFile.GetSize()) )
- {
- sFile = m_rgsFile[iFile];
- }
- return( sFile != "" ? TRUE : FALSE );
- }
-
-
- int getDirCount( void )
- {
- return( m_rgsDir.GetSize() );
- }
-
- BOOL GetDir( CString &sDir, int iDir )
- {
- sDir = "";
-
- if( (0 <= iDir) && (iDir < m_rgsDir.GetSize()) )
- {
- sDir = m_rgsDir[iDir];
- }
- return( sDir != "" ? TRUE : FALSE );
- }
-
-
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CScanDir)
- //}}AFX_VIRTUAL
-
- virtual BOOL OnEnumDir( LPCSTR pszDir )
- {
- // printf( "OnEnumDir( %s )\n", pszDir );
-
- return( TRUE );
- }
-
- virtual BOOL OnEnumFile( LPCSTR pszFile )
- {
- // printf( "OnEnumFile( %s )\n", pszFile );
-
- return( TRUE );
- }
-
-
- virtual BOOL Scan( LPCSTR pszFileSpec );
- virtual BOOL ScanEnum( LPCSTR pszFileSpec,
- BOOL (*pFunc)( void *pContext, CFileFind *pFind ) = NULL,
- void *pContextCallback = NULL );
-
- // Implementation
- public:
- virtual ~CScanDir();
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CScanDir)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- };
-
- /////////////////////////////////////////////////////////////////////////////
-
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
- #endif // !defined(AFX_CSCANDIR_H__854FFFA1_77EE_11D2_9F15_00A0246D0F63__INCLUDED_)
-
- // ////////////////////////////////////////////////////////////
- // ////////////////////////////////////////////////////////////
- // ////////////////////////////////////////////////////////////
-