UpdateFunctionProgressBar(
     LPVOID:lpFuncData,
     UINT:uiAction,
     DWORD_PTR:dwData
)
→ void

Arguments

lpFuncData

[in] The value of the lpFuncData member of the VFSBATCHDATA structure

uiAction

[in] The action to perform. Valid actions are:

PROGRESSACTION_STATUSTEXTUpdate progress dialog text
PROGRESSACTION_NEXTFILEMove to the next file
PROGRESSACTION_SETFILENAMESet the current filename
PROGRESSACTION_SETFILESIZESet the current file size
PROGRESSACTION_SETFILESIZE64Set the current file size (64-bit)
PROGRESSACTION_STEPBYTESStep the progress bar a number of bytes
PROGRESSACTION_SETBYTESSet current byte progress
PROGRESSACTION_SETBYTES64Set current byte progress (64-bit)
PROGRESSACTION_SKIPFILESkip the current file
PROGRESSACTION_PERCENTMODEPercentage rather than byte progress
PROGRESSACTION_SETPERCENTSet current percent progress
PROGRESSACTION_NOPROGRESSNo progress bars

dwData

[in] The dwData value depends upon the value of uiAction. See Remarks section for more details.

Return value

None.

Description

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_BATCHCOPYCopy operation (displays copy animation)
NOPROGRESSF_BATCHDELETEDelete operation (displays delete animation)
NOPROGRESSF_NOABORTDoes not display the abort button