Jump to content

  • Log In with Google      Sign In   
  • Create Account

GDI+ How to redraw screen?


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1   Members   -  Reputation: 1096

Like
0Likes
Like

Posted 30 January 2014 - 04:54 PM

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



#2   Crossbones+   -  Reputation: 2705

Like
5Likes
Like

Posted 30 January 2014 - 06:35 PM

*
POPULAR

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



#3   Members   -  Reputation: 1096

Like
0Likes
Like

Posted 02 February 2014 - 05:06 PM

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



#4   Members   -  Reputation: 1459

Like
2Likes
Like

Posted 02 February 2014 - 05:13 PM

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.


My personal links
- Khan Academy - For all your math needs
- Java API Documentation - For all your Java info needs
- C++ Standard Library Reference - For some of your C++ needs ^.^





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.




PARTNERS