IPhotoProgressDialog::SetPercentComplete method (photoacquire.h)
The SetPercentComplete
method sets a value indicating the completed portion of the current operation.
Syntax
HRESULT SetPercentComplete(
[in] int nPercent
);
Parameters
[in] nPercent
Integer value indicating the percentage of the operation that has completed. This value may be between 0 and 100 only.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Remarks
If you pass PROGRESS_INDETERMINATE to SetPercentComplete
, the progress bar will not progress from left to right (from 0 to 100%), but will instead animate to indicate that an operation with an indeterminate end is taking place.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | photoacquire.h |
Library | PhotoAcquireUID.lib |