DwinsHs_CancelButtonClick procedure

During the download operation using the DwinsHs_CurPageChanged procedure (in the pre-defined downloading wizard page), the procedure avoids the confirm message box to be poped up twice when the "Cancel" button is clicked on, or the Setup wizard Window's close button is clicked on.

Please call the procedure in the end of the CancelButtonClick event function if you want to use the pre-defined downloading wizard page. If the event function isn't defined, please create it.

Declaration:

procedure DwinsHs_CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);

Parameters:

Example:

procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
  Cancel := True;
  Confirm := True;
  ...
  DwinsHs_CancelButtonClick(CurPageID, Cancel, Confirm);
end;

Note:

The procedure is avaliable only when the DwinsHs_Use_Predefined_Downloading_WizardPage marco is defined.