PBM_SETPOS message

Sets the current position for a progress bar and redraws the bar to reflect the new position.

Parameters

wParam

Signed integer that becomes the new position.

lParam

Must be zero.

Return value

Returns the previous position.

Remarks

If wParam is outside the range of the control, the position is set to the closest boundary.

Do not send this message to a control that has the PBS_MARQUEE style.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h