CreateProgressBar(WindowNumber, ControlNumber, x, y, Width, Height, Style)

Create a Progress-Bar control on a defined window, style define attributes of control, you can use #VMB_PROGRESSBAR_DEFAULT to create it as default style. Other constant to use with default style is #VMB_PROGRESSBAR_SMOOTH, that create a smooth progress bar instead of blocks progress bar.