The PBM_SETPOS message sets the current position for a progress bar and redraws the bar to reflect the new position.
PBM_SETPOS
wParam = (WPARAM) nNewPos;
lParam = 0;
Parameters
nNewPos
New position.
Return Values
Returns the previous position.