void CMod7aView::OnPaint()
{
CClientDC dc(this);
if(hBmp!=NULL)
{
CBitmap bmp;
bmp.Attach(hBmp);
CDC bmDC;
bmDC.CreateCompatibleDC(&dc);
CBitmap *pOldbmp = bmDC.SelectObject(&bmp);
BITMAP bi;
bmp.GetBitmap(&bi);
dc.BitBlt(0,0,bi.bmWidth,bi.bmHeight,&bmDC,0,0,SRCCOPY);
bmDC.SelectObject(pOldbmp);
}
how do you make your image persistant? everytime iload a bitmap after I move the main window the image disappears.
pls help me.