# UpdateProgressDialog

int UpdateProgressDialog (int progressDialog, int percentComplete, int processSystemEvents);

## Purpose

This function should be called periodically to update the amount of progress indicated by the horizontal bar on a progress dialog.

## Parameters

Input
Name | Type | Description
progressDialog | integer | Pass the panel handle of the progress dialog to update. This value must be a value returned by the CreateProgressDialog function.
percentComplete | integer | Pass the completion percentage (0 to 100) to display in the horizontal progress bar.
processSystemEvents | integer | This parameter specifies whether or not to process system events while updating the dialog. If you already process events while the operation is in progress, or if you want to lock out all user input and callbacks while the operation is progress, pass 0 (No). If you are displaying the progress of an operation that does not allow events to be processed, but you would like events to be processed, pass 1 (Yes). For more information, see the help for the ProcessSystemEvents function in the User Interface Library.

## Return Value

Name | Type | Description
cancelRequested | integer | This control returns 1 if the user has requested to abort the operation by pressing the cancel button or the ESC key. 0 is returned if the user has not requested to abort the operation. if an error occurred while updating the dialog, a negative User Interface Library error code is returned.