I'm making a mp3-player, and I have a time bar within the program. I need to update the time bar while the music is playing within a period of time.
Since I couldn't really find info about how to make interrupts I just added some extra codes to the message loop.
It uses the time libary to check if there has been a delay of 1/5 second. Then I use InvalidateRect to update the place where my time bar is.
My problem is, that it only updates when the window receives another message, like when I'm moving my mouse or so.
Do you have a good solution on how I could update the window within a period of time?