Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

GDI+ How to redraw screen?

4: Adsense

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 HawkDeath   Members   

1336
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 Vortez   Members   

2710
Like
5Likes
Like

Posted 30 January 2014 - 06:35 PM

*
POPULAR

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



#3 HawkDeath   Members   

1336
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 boogyman19946   Members   

1484
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.






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.