Remove the background from the new image when it is being replaced

with a ReplaceImage.
This commit is contained in:
Aric Stewart 2000-05-11 21:39:45 +00:00 committed by Alexandre Julliard
parent 4d05761958
commit 031793e7f9
1 changed files with 10 additions and 0 deletions

View File

@ -2272,6 +2272,16 @@ ImageList_Replace (HIMAGELIST himl, INT i, HBITMAP hbmImage,
StretchBlt (hdcImageList, i * himl->cx, 0, himl->cx, himl->cy,
hdcImage, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY);
/* Remove the background from the image
*/
SelectObject (hdcImageList, himl->hbmImage);
StretchBlt (hdcImageList,
i*himl->cx, 0, himl->cx, himl->cy,
hdcImage,
0, 0, bmp.bmWidth, bmp.bmHeight,
0x220326); /* NOTSRCAND */
}
DeleteDC (hdcImage);