well I've made a simple program. It draws some shapes onto the screen. I have also made a timer which increases the x of the shapes every 5 seconds so it appears that its moving.
The issue is its repainting the window as you can see the new shapes but you can also see the old shapes unless you resize the window (and thus updating it).
I am using DC instead of begin paint so any ideas of what I may be doing wrong?
http://img150.imageshack.us/img150/4544/example1id6.jpg
http://img292.imageshack.us/img292/5414/example2ya3.jpg
Ignore the cicrcle not moving I done that on purpose