Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress of SHFILEOPERATION?

Status
Not open for further replies.

sohrab100

Programmer
Jan 18, 2002
56
HK
When i issue SHFILEOPERATION function for copy file/folder,
how can i know the actual progress value of the process rather than popup the simpleprogress dialog offered from the SHFILEOPERATION?

sohrab100
 
I don't believe you can get that information. You would have to write your own function to do it. It should be very simple though. The only time you need a progress bar is when there is a large amount of files involved, so there has to be a loop from 0 to the number of files to process built into your function. Just set your Progress variable to part/whole. (float)#files_processed/#files. Then if you use a TProgressBar, you can set it's Position to your Progress variable.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top