The ShowProgress procedure shows a modal progress dialog and increments the global progress reference count. The HideProgress procedure decrements the reference count and hides any active progress dialog. The AnimationStyle and AnimationDuration parameters are optional, and indicate the type/duration of animation to use when showing the progress dialog.