Windows programming
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
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement