Board index » Visual Studio » retrieve the bitmap in a particular DC
|
douginri
|
|
douginri
|
retrieve the bitmap in a particular DC
Visual Studio371
Hello MFCians, I draw a circle on CWnd object's client area. this Cwnd object is created from Cview derived class of SDI application. My problem is that after i minimize the view i loose my drawing . I guess i need to store current bitmap before minimizing. but how can i do this. is there any method to retrieve the bitmap in a particular DC? Thanks. - |
| Arpit
Registered User |
Wed Aug 02 06:31:36 CDT 2006
Re:retrieve the bitmap in a particular DCArpit wrote: QuoteHello MFCians, directly take a CDC object and use ellipse function. Thanks once again - |
| Gerry
Registered User |
Sun Aug 06 07:44:12 CDT 2006
Re:retrieve the bitmap in a particular DC
In article <1154513428.766044.47480@p79g2000cwp.googlegroups.com>,
arpitpmehta@gmail.com says... QuoteHello MFCians, the CView. What you need is to create a memory CDC with its own bitmap. Draw your image on that, and BitBlt it to the CView CDC when you need to. A good basic rule is always to create a memory CDC and CBitmap at the same time and keep them together. There is no good reason for selecting CBitmaps in and out. - Gerry Quinn - |
| Arpit
Registered User |
Mon Aug 07 04:40:49 CDT 2006
Re:retrieve the bitmap in a particular DC
Thanks for helping me out, Gerry Quinn
Gerry Quinn wrote: QuoteIn article <1154513428.766044.47480@p79g2000cwp.googlegroups.com>, |
