I am developing a GUI with WINAPI and I've a question.
I made a custom progress bar with the respective Procedure for handling it's messages.
I paint the progress bar myself. For the progress bar percentage I use a static variable that I update using a custom message and then I repaint the progress bar by using InvalidateRect.
Now how could I optimize my code so I could create multiple windows of my ProgressBar class.
The problem is that I can't use that same static percentage variable for all of them! So each instance should have it's own percentage variable.

Thank you