home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / CCARACT.ZIP / clficrep.hpp < prev   
Encoding:
C/C++ Source or Header  |  1998-03-30  |  2.3 KB  |  63 lines

  1. #ifndef INCL_CFICREP_HPP
  2. #define INCL_CFICREP_HPP
  3. #include <afxcoll.h>
  4.  
  5. // Use the windows API attribute
  6.  
  7. // FILE_ATTRIBUTE_ARCHIVE
  8. // FILE_ATTRIBUTE_COMPRESSED
  9. // FILE_ATTRIBUTE_DIRECTORY
  10. // FILE_ATTRIBUTE_HIDDEN
  11. // FILE_ATTRIBUTE_NORMAL
  12. // FILE_ATTRIBUTE_OFFLINE
  13. // FILE_ATTRIBUTE_READONLY
  14. // FILE_ATTRIBUTE_SYSTEM
  15. // FILE_ATTRIBUTE_TEMPORARY
  16.  
  17.  
  18. #define FOO_KEEPTREE 0x01 // The directory tree is keeped during a copy, move
  19.  
  20. class CFileDirectory : public CStringList
  21. {
  22.  public :
  23.  
  24.  CFileDirectory( int nBlockSize = 10  );
  25.  ~CFileDirectory();
  26.  
  27.  void CreateList( CString rep, CString filter, UINT attr = 0, bool recursive = false );
  28.  void CreateList( CString rep, CString filter, bool recursive = false );
  29.  // Les paramΦtres sont rep : rΘpertoire de dΘpart
  30.  // filter : le filtre de recherche ( "*.doc" par exemple )
  31.  // recursive : la fonction cherche dans les sous rΘpertoires
  32.  // Chaque CreateList remet α jour la CStringList
  33.  
  34.  int FileOperation( CWnd * parent, // Parent windows
  35.                     UINT wFunc,
  36.                     CString destination,  // Destination directory
  37.                     long fFlags = FOF_ALLOWUNDO,
  38.                     int oFlags  = 0 );
  39.  
  40. // wFunc, function to process on the files in the StringList
  41. // FO_COPY
  42. // FO_DELETE
  43. // FO_MOVE
  44. // FO_RENAME
  45.  
  46. // fFlags   Windows SDK flags
  47. // FOF_ALLOWUNDO    Preserves undo information, if possible.
  48. // FOF_FILESONLY    Performs the operation only on files if a wildcard filename (*.*) is specified.
  49. // FOF_MULTIDESTFILES    Indicates that the pTo member specifies multiple destination files (one for each source file) rather than one directory where all source files are to be deposited.
  50. // FOF_NOCONFIRMATION    Responds with "yes to all" for any dialog box that is displayed.
  51. // FOF_NOCONFIRMMKDIR    Does not confirm the creation of a new directory if the operation requires one to be created.
  52. // FOF_RENAMEONCOLLISION    Gives the file being operated on a new name (such as "Copy #1 of...") in a move, copy, or rename operation if a file of the target name already exists.
  53. // FOF_SILENT    Does not display a progress dialog box.
  54. // FOF_SIMPLEPROGRESS    Displays a progress dialog box, but does not show the filenames.
  55.  
  56. // See the Win 95 Guide ShFileOperation for more informations
  57.  
  58.  private :
  59.  
  60. };
  61.  
  62.  
  63. #endif