拷贝文件时,拷贝进度对话框如何制作?
是自己制作吗?还是调用shell?
请高手讲解!

解决方案 »

  1.   

    可以自己制作。用CopyFileEx,设置回调:
    DWORD CALLBACK CopyProgressRoutine(
      LARGE_INTEGER TotalFileSize,          // file size
      LARGE_INTEGER TotalBytesTransferred,  // bytes transferred
      LARGE_INTEGER StreamSize,             // bytes in stream
      LARGE_INTEGER StreamBytesTransferred, // bytes transferred for stream
      DWORD dwStreamNumber,                 // current stream
      DWORD dwCallbackReason,               // callback reason
      HANDLE hSourceFile,                   // handle to source file
      HANDLE hDestinationFile,              // handle to destination file
      LPVOID lpData)                        // from CopyFileEx
    {
    return PROGRESS_CONTINUE;
    }
      

  2.   

    CopyFileEx' : undeclared identifier
    是怎么回事,没法用?
      

  3.   

    终于明白了SHFileOperation的用法
    我的问题也解决了,
    谢谢各位