Progress Bar, reset + refill

Hi,

I've made a progress bar and everything seemed to be fine, colour, range, current value etc. but I decided it looked much better as a smooth progress bar (using PBS_SMOOTH), but for some reason the progress bar now resets back to 0, then refills again everytime I use:


SendMessage(GetDlgItem(hWnd,IDC_PROGRESSBAR1),PBM_SETPOS,CurValue,0);

to set the current position. At first I thought it was flickering, but when I changed the delay for the loop getting the current value, you can clearly see it is emptying and refilling. The value itself isn't resetting to 0, only the progress bar is.


Thanks
You will need to use the PBM_SETSTEP and PBM_STEPIT messages.
Topic archived. No new replies allowed.