Click to return to the Reusing Browser Technology home page    
DWebBrowserEvents2::OnVis...     DWebBrowserEvents2::Prope...     DWebBrowserEvents2 Interf...    
Web Workshop  |  Reusing Browser Technology

DWebBrowserEvents2::ProgressChange Method


Notifies an application that the progress of a download operation has been updated.

Syntax

void ProgressChange(
    long Progress,
    long ProgressMax
);

Parameters

Progress
[in] Amount of total progress to show, or -1 when progress is complete.
ProgressMax
[in] Maximum progress value.

Return Value

No return value.

Remarks

The container can use the information provided by this event to display the number of bytes downloaded so far or to update a progress indicator.

To calculate the percentage of progress to show in a progress indicator, multiply the value of Progress by 100 and divide by the value of ProgressMax (unless Progress is -1, in which case the container can indicate that the operation is finished or hide the progress indicator).

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

DWebBrowserEvents2::DownloadBegin, DWebBrowserEvents2::DownloadComplete


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.