Simple question = (I hope) simple answer
-
I'm using CPaintDC class for drawing directly on a window. Right now I would like to draw into a CBitmap object and then copy it to screen to avoid blinking and to make imege storing possible. Any simple way to create CPaintDC that draws into CBitmap object? :-D Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.
-
I'm using CPaintDC class for drawing directly on a window. Right now I would like to draw into a CBitmap object and then copy it to screen to avoid blinking and to make imege storing possible. Any simple way to create CPaintDC that draws into CBitmap object? :-D Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.
[CoY0te] wrote: Any simple way to create CPaintDC that draws into CBitmap object? Actually, it'll be CDC (not CPaintDC) which draws into CBitmap. There should be CMemDC class rigt here on CP which does exectly that. Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans? -
[CoY0te] wrote: Any simple way to create CPaintDC that draws into CBitmap object? Actually, it'll be CDC (not CPaintDC) which draws into CBitmap. There should be CMemDC class rigt here on CP which does exectly that. Tomasz Sowinski -- http://www.shooltz.com
- It's for protection
- Protection from what? Zee Germans?Thank You. I would probably spend some time looking for it in the MSDN before i would find out that MFC doesn't support drawing into CBitmap this way. I'll check out that CMemDC class right now. Thank You again. Greetings from Poland, heh. :cool: Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.