Quote:Original post by Programmer16
Okay, I am really sorry for bothing everybody. Its seems that there isn't anything wrong with my STL (as far as I know). I've never really used Win32 for graphics and I guess I'm only getting WM_PAINT message once. Does anybody know how I fix this?
I believe the typical method is to use some form of a timer or loop to continually tell Windows to repaint your window (as in send you a WM_PAINT message), by using either
UpdateWindow() or
InvalidateRect().
An easy way to set up a timer would be with
SetTimer(). This will send a WM_TIMER message to your window at the (approximately) appropriate times, at which point you'd call one of those two functions above. It's not the most accurate thing in the world time-wise, but it's good to get the basic functionality working. A better timing mechanism can be added later.
And as a couple of side notes, I can't believe I missed that iterator/pointer thingy, and I don't accept your apology for asking questions when the problem was elsewhere. You shouldn't be apologizing to begin with. [smile]
"We should have a great fewer disputes in the world if words were taken for what they are, the signs of our ideas only, and not for things themselves." - John Locke