lpBits=lpBitmap+sizeof(BITMAPFILEHEADER)+sizeof(BITMAPINFOHEADER); if (lpBackup) delete lpBackup; lpBackup=new BYTE[nLen]; memcpy(lpBackup,lpBitmap,nLen);}