ThreadWithProgressWindow update progressbar with ZipBuilder::writeToStream progress

Is there a way to update the progressbar in a ‘ThreadWithProgressWindow’ which does a ZipBuilder::writeToStream() call? The writeToStream can supply a double for a progress update but I am not sure how I update the ThreadWithProgressWindow’s progressbar.

Thanks

E