Commit Graph

187 Commits

Author SHA1 Message Date
Nikolay Sivov eb2aae669c comctl32/imagelist: Make IImageList_Merge() crash like it does on native. 2010-08-23 13:37:01 +02:00
Nikolay Sivov d84cad6a06 comctl32/imagelist: Fail to create imagelist with zero or negative image dimensions. 2010-08-20 13:46:54 +02:00
Nikolay Sivov 66c9a73db5 comctl32/imagelist: Fail in ImageList_GetIconSize on null parameters. 2010-08-20 13:46:49 +02:00
Nikolay Sivov 4023e0125f comctl32/imagelist: Fix failure code for IImageList_Remove(). 2010-08-20 13:46:40 +02:00
Nikolay Sivov 5ee4441c15 comctl32/imagelist: Fix failure code for IImageList_Draw(). 2010-08-20 13:46:36 +02:00
Dmitry Timoshkov 1066194f94 comctl32: Add a bunch of imagelist storage tests, make them pass under Wine. 2010-06-23 15:27:47 +02:00
Alexandre Julliard 9eea385a0e comctl32/imagelist: Grow the has_alpha array also in ImageList_SetImageCount. 2010-06-08 12:45:48 +02:00
Alexandre Julliard 95c529dee6 comctl32: Only support an alpha channel for 32-bpp DIB-based imagelists. 2010-06-02 12:46:58 +02:00
Alexandre Julliard 350f0d3982 comctl32/imagelist: Initialize the mask bits to zero in case the mask bitmap is smaller than the image bitmap. 2010-06-01 16:26:15 +02:00
Alexandre Julliard d81ddde230 comctl32/imagelist: Don't select the mask bitmap into a DC, it may already be selected. 2010-06-01 16:25:47 +02:00
Alexandre Julliard f90b6d5af6 comctl32/imagelist: Fix a copy/paste typo in ImageList_Merge. 2010-05-26 17:36:23 +02:00
Alexandre Julliard 5572fc57ef comctl32/imagelist: Add support for 25% and 50% blending when using an alpha channel. 2010-05-26 15:39:17 +02:00
Alexandre Julliard 8f1853a309 comctl32/imagelist: Clear pixels that fall outside the mask when generating an alpha channel. 2010-05-19 20:11:48 +02:00
Alexandre Julliard 15efbc892b comctl32/imagelist: Don't pre-multiply the stored image, do it only at blending time. 2010-05-18 18:42:06 +02:00
Alexandre Julliard 3915cfbd02 comctl32/imagelist: Fix the allocated size of the has_alpha array. 2010-05-17 12:42:25 +02:00
Alexandre Julliard 45fd49bab6 comctl32/imagelist: Generate the mask from the alpha channel if present. 2010-05-16 18:23:04 +02:00
Alexandre Julliard f2b993d414 comctl32/imagelist: Pre-multiply the colors by the alpha channel when storing an image with alpha. 2010-05-16 18:22:53 +02:00
Alexandre Julliard 91948f9ce8 comctl32: Always alpha blend images for 32-bpp imagelists. 2010-05-14 16:17:56 +02:00
Alexandre Julliard 33e7d0282b comctl32: Store an alpha channel present flag for each image in an imagelist. 2010-05-14 16:17:56 +02:00
Alexandre Julliard 528722e4e1 comctl32: Also generate an alpha channel when replacing an image or icon in an imagelist. 2010-05-14 16:17:56 +02:00
Alexandre Julliard f02adf3e2b comctl32: Generate an alpha channel if necessary when adding images to a 32-bit imagelist. 2010-05-14 16:17:36 +02:00
Alexandre Julliard f75c7b5f71 comctl32: Make ImageList_AddMasked call ImageList_Add instead of duplicating the functionality. 2010-05-14 13:37:04 +02:00
Michael Stefaniuc a712a29201 comctl32: Update some ImageList comments. 2010-05-11 11:06:16 +02:00
Alexandre Julliard 8ea1f3385a comctl32: Apply the imagelist mask when alpha blending. 2010-05-10 18:20:20 +02:00
Alexandre Julliard 599531b7d9 comctl32: Add support for alpha blending in ImageList_DrawIndirect. 2010-05-05 12:47:24 +02:00
Dmitry Timoshkov 93437fc963 comctl32: Do not use width of the passed to ImageList_Add bitmap as an icon width. 2010-04-07 13:51:45 +02:00
Michael Stefaniuc 223603cc1c comctl32: Use IS_INTRESOURCE instead of HIWORD to check a resource. 2010-01-26 12:13:51 +01:00
Michael Stefaniuc 4376ccf3fc comctl32: Use FAILED instead of !SUCCEEDED. 2009-12-01 13:04:36 +01:00
Owen Rudge 341e6ed533 comctl32: Implement imagelist drag functions, GetOverlayImage. 2009-11-17 15:14:53 +01:00
Owen Rudge 2e9a6e96e3 comctl32: Implement GetImageRect, Get/SetIconSize, Get/SetBkColor. 2009-11-17 15:14:53 +01:00
Nikolay Sivov 7caa61fde6 comctl32/imagelist: Make ImageList_Destroy just decrease refcount. Move actual destruction to ::Release. 2009-11-16 15:02:02 +01:00
Nikolay Sivov 3e20458aca comctl32/imagelist: Get rid of magic field, use vtable pointer instead. Keep original layout. 2009-11-16 15:01:27 +01:00
Owen Rudge 76c7f28050 comctl32: Implement Copy, Merge and Clone methods in IImageList. 2009-11-16 13:30:01 +01:00
Owen Rudge 8a4a761683 comctl32: Implement SetOverlayImage, Replace, AddMasked, Draw, Remove, GetImageInfo. 2009-11-16 13:29:01 +01:00
Owen Rudge dff6be098e comctl32: Implement Add, ReplaceIcon, GetImageCount, SetImageCount in IImageList. 2009-11-16 13:27:37 +01:00
Marcus Meissner c2e0226d2f comctl32: Removed useless NULL check (Coverity). 2009-11-16 12:43:07 +01:00
Owen Rudge a4f2ab9d14 comctl32: Add basic structure for IImageList interface. 2009-11-13 12:14:40 +01:00
Owen Rudge 956a52bd7f comctl32: Add stubs for image list functions introduced in Vista. 2009-08-13 15:51:16 +02:00
Michael Stefaniuc da6d7920de comctl32: Remove superfluous pointer casts. 2009-02-13 13:00:25 +01:00
Michael Stefaniuc 092b892f54 comctl32: HGDIOBJ is interchangeable with other handle types so don't cast. 2008-10-27 11:29:46 +01:00
Michael Stefaniuc b723e6f6b6 comctl32: Remove the superfluous casting of the LPVOID returned by Alloc(). 2008-10-24 14:24:59 +02:00
Michael Stefaniuc 15e5f6844a comctl32: Use FAILED instead of !SUCCEEDED. 2008-10-08 13:42:47 +02:00
Gerald Pfeifer 1cdb06c69c comctl32: Remove unused parameter from _read_bitmap(). 2008-07-29 13:53:42 +02:00
Andrew Talbot b7cc9c66b3 comctl32: Remove unneeded address-of operators from array names. 2008-07-08 10:47:43 +02:00
Gerald Pfeifer 7b306c57bd comctl32: Remove check which never triggers. 2007-11-15 12:49:23 +01:00
Alexandre Julliard a4c9d96aca comctl32: Fixed handling of monochrome icons in image lists. 2007-11-14 12:38:35 +01:00
Misha Koshelev fc5a746104 comctl32: imagelist: Fix simultaneous selection of one bitmap into two device contexts. 2007-06-01 12:43:40 +02:00
Aric Stewart df0d77b007 comctl32: Trying to blend an image without a mask causes problem, especially if the background is white. 2007-05-18 14:42:30 +02:00
Dmitry Timoshkov 83f51d08df comctl32: Add more image list tests, fix one problem found. 2007-04-24 11:53:59 +02:00
Dmitry Timoshkov 8c5cf0cbae comctl32: Add an image list storage test, make it pass under Wine. 2007-04-23 13:58:15 +02:00