_DPIEWebBrowserEvents2::OnProgressChange (Windows CE 5.0)

Send Feedback

The OnProgressChange event method fires when the progress of a download operation is updated on the object.

Syntax

void OnProgressChange(  long lProgress,  long lProgressMax);

Parameters

  • lProgress
    [in] Variable that specifies the amount of total progress to show, or -1 when progress is complete.
  • lProgressMax
    [in] Variable that specifies the maximum progress value.

Return Values

None.

Remarks

The object 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 lProgress by 100 and divide it by the value of ProgressMax. If the value of lProgress is -1, the object can indicate that the operation is finished or hide the progress indicator.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: webvw.h
Library: wvuuid.lib

See Also

_DPIEWebBrowserEvents2

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.