UpdateFunctionProgressBar(
LPVOID:lpFuncData,
UINT:uiAction,
DWORD_PTR:dwData
)
→ void
| PROGRESSACTION_STATUSTEXT | Update progress dialog text |
| PROGRESSACTION_NEXTFILE | Move to the next file |
| PROGRESSACTION_SETFILENAME | Set the current filename |
| PROGRESSACTION_SETFILESIZE | Set the current file size |
| PROGRESSACTION_SETFILESIZE64 | Set the current file size (64-bit) |
| PROGRESSACTION_STEPBYTES | Step the progress bar a number of bytes |
| PROGRESSACTION_SETBYTES | Set current byte progress |
| PROGRESSACTION_SETBYTES64 | Set current byte progress (64-bit) |
| PROGRESSACTION_SKIPFILE | Skip the current file |
| PROGRESSACTION_PERCENTMODE | Percentage rather than byte progress |
| PROGRESSACTION_SETPERCENT | Set current percent progress |
| PROGRESSACTION_NOPROGRESS | No progress bars |
The UpdateFunctionProgressBar function is used to update the progress display when performing a batch operation.
The progress display for a batch operation is automatically created and displayed by Opus. Opus is also responsible for counting the total number of files and folders involved in the operation, and so the progress bars are pre-set to the correct levels. It is your responsibility to update the progress display as you perform the batch operation.
For both copy and delete operations this involves setting the status bar text as appropriate, and notifying the progress display for each file. For copy operations you should also notify the progress display of the size of each file, and send regular 'step' messages as the file copy progresses, to ensure the user is kept informed of the progress of the operation.
The value of the dwData parameter depends on the value of uiAction:
| NOPROGRESSF_BATCHCOPY | Copy operation (displays copy animation) |
| NOPROGRESSF_BATCHDELETE | Delete operation (displays delete animation) |
| NOPROGRESSF_NOABORT | Does not display the abort button |