McGreg
February 8th, 2005, 08:26 AM
I have a dialogbased application, where i load trough the CPicture class an Image into a static field.
The picture is shown, thats the good part, but when i e.g. minimize and then open the window again, the picture isnt there.
i tried with
CShowPic::OnPaint()
{
CPaintDC DC(this);
CDC *pDC = new CClientDC( t );
CRect imagesize;
t->GetWindowRect(imagesize);
t->ScreenToClient(imagesize);
Picture.Show(pDC, imagesize ); // show the picture
Picture.FreePictureData();
UpdateData(FALSE);
delete pDC;
delete DC;
}
but no effect! did i forgot something?
The picture is shown, thats the good part, but when i e.g. minimize and then open the window again, the picture isnt there.
i tried with
CShowPic::OnPaint()
{
CPaintDC DC(this);
CDC *pDC = new CClientDC( t );
CRect imagesize;
t->GetWindowRect(imagesize);
t->ScreenToClient(imagesize);
Picture.Show(pDC, imagesize ); // show the picture
Picture.FreePictureData();
UpdateData(FALSE);
delete pDC;
delete DC;
}
but no effect! did i forgot something?