September 1st, 2009, 05:56 AM
Device Context Problems
hBmp = r->REThbitmap();
CBitmap *pOldbmp = bmpDC.SelectObject(&bmp);
Description : -
1. In this case when the value of raster1 is not 0, it implies that there exist a BMP image that must be displayed
2. If r->GETvisibility is true, then we must display the image on the screen
3. If r->GETvisibility is false, then we must not display the image on the screen
when the image is loaded for the first time it is displayed properly. WHen we make the image invisible then it hides correctly.
The problem arises when we make the image visible again, this time the image is not displayed on the screen. I don't want this to happen.
September 1st, 2009, 04:16 PM
Re: Device Context Problems
This seems like a pretty easy bug to find. Have you tried stepping through the code and checking all return codes?
Gort...Klaatu, Barada Nikto!
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.