Share via


_DPIEWebBrowserEvents2::OnProgressChange

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

Pocket PC: Windows Mobile 2003 and later
OS Versions: Windows CE 4.0 and later
Header: webvw.h
Library: webvw.lib

See Also

_DPIEWebBrowserEvents2

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.