Is it possible to stop / suppress the "pulsing" animation of the progress bar? (That was introduced with the vista themes IIRC)
We have a process that can be paused by the user (to inspect hardware or intermediate results). While there's the usual "Pause button pressed" feedback to convey the state, the progress bar animation makes it look like the process is still running.
(The easy way out - to hide the progress bar - would be suboptimal, as even in paused state the progress is somewhat relevant.)
Since you're using the progress bar introduced with the Vista version of the common controls library, you can do even better than simply suppressing the animation.
The progress bar has three states:
You switch between the states by sending the progress bar control window a PBM_SETSTATE
message. The wParam
parameter should be either PBST_NORMAL
, PBST_PAUSED
, or PBST_ERROR
. The lParam
parameter should be 0.
The pulsing animation is suppressed for both the paused and error states.
To retrieve the current state of the progress bar, send a PBM_GETSTATE
message.