• Advertisement

Archived

This topic is now archived and is closed to further replies.

Windows programming

This topic is 5323 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In Win32 API, how do I draw text to a buffer and then after I finish drawing everything else to it, draw that buffer to the window I made, including the text. THX, JAP

Share this post


Link to post
Share on other sites
Advertisement
By buffer I assume you mean a memory DC created using CreateCompatibleDC(the_dc_you_will_ultimately_draw_to) which has selected into it a bitmap compatible (possibly created using CreateCompatibleBitmap()) with the bitmap in the DC you will ultimately draw to.

If this is the case, you draw to the memory DC as if you were drawing to the DC that you will ultimately draw to and then draw that memory DC to the DC that you will ultimately draw to.

See "Double Buffering"



Qui fut tout, et qui ne fut rien
Invader''s Realm

Share this post


Link to post
Share on other sites

  • Advertisement