Windows Vista Beta | WinVistaBeta.com - Message | ImageList_Replace Bug in Vista Beta 2?!

August 28, 2008  
Subject: ImageList_Replace Bug in Vista Beta 2?!
Group: microsoft.public.windows.developer.winfx.sdk
Date: 6/18/2006 10:06:26 AM
From: "Rolf" [Email Address Protection]

I'm just testing my application under Vista Beta 2 and I encountered the
following problem:

ImageList_Replace seems to have a bug in it as it doesn't anymore correctly
work if the backround of the new image is white instead black (themed
application). Or with other words: it only works with black background
images.

You can download a simple test application with Delphi Source, which
demonstrates the problem here
(http://www.eicom.ch/rolf/imagelist_replace_bug.zip):

You can see there two rows of bitmaps.
In the first row you can see the image with white background and how it
behaves with ImageList_Replace.
In the second row you can see the image with black background and how it
behaves with ImageList_Replace.
The used Imagelist contains the blue image of the toolbar.
The first image is the mask of the initial image.
The second image is the Image wich we want replace into the Imagelist.
The last two images are the images from the imagelist after the
Imagelist_Replace call. One time drawn with ImageList_Draw and one time with
ImageList_DrawEx.

Running ths sample application under XP behaves as expected, but under Vista
the first Row isn't correct. The relpace Image looks wrong, like a white
mask of the image.

Regards
Rolf




Back