I have two imagelist with size 16 * 16 and 32 * 32 respectively. I add an icon to these two image list and it works fine on XP. Under 120 DPI setting, It gives an error in Vista when i try to add the icon to the second imagelist. In the normal DPI setting it works fine. The error is,

WFCException : cannot add an image smaller than the imagesize property.

The code is in vj++. sample code is:

smallImageList = new ImageList (new Point (16, 16));
largeImageList = new ImageList (new SIZE (32,32));

Icon icon = (Icon)LImage.getImage....

smallImageList.addImage (icon);

largeImageList.addImage (icon); //error occurs on this statement.

I appreciate your help on this.