Advertisement

GDI+ How to redraw screen?

Started by January 30, 2014 10:54 PM
2 comments, last by boogyman19946 11 years ago

Hi,

it is my first post, i want ask how to redraw screen without "flicker" screen. I used InvalidateRect(), RedrawWindow() and Graphics::Clear(). Always result it was same.

Join link with program : http://speedy.sh/3JBhu/Release.zip

Junior Software Engineer. Big fan a graphics programming. 

Basically, you want to use double buffering, have a look at this.

Advertisement

Thanks, but I don't know where in I have hand on "backbufferDC" to Graphics* m_pGraphics;

Junior Software Engineer. Big fan a graphics programming. 

Thanks, but I don't know where in I have hand on "backbufferDC" to Graphics* m_pGraphics;

You create it yourself. You don't want the user to see you draw every piece of the UI manually, that's what creates the flicker. To solve this, you create a buffer off to the side, do all your drawing there, and when it's done, you show the results on screen.

Yo dawg, don't even trip.

This topic is closed to new replies.

Advertisement