Commit Graph

197 Commits

Author SHA1 Message Date
Francois Gouget
01378c5c8e comctl32: Don't crash when getting a bad image list handle. 2011-09-19 18:32:51 +02:00
Alexandre Julliard
bd3b0e4f70 comctl32: Simplify the DIB byte width computation. 2011-08-29 12:08:21 +02:00
Nikolay Sivov
6d1a3c6e6e comctl32/imagelist: Fix a couple of imagelist leaks (Valgrind). 2011-01-17 12:50:33 +01:00
Alexandre Julliard
cca319d594 comctl32/imagelist: Don't change destination size in ImageList_Duplicate without corresponding allocation. 2011-01-10 12:41:38 +01:00
Alexandre Julliard
1826530974 comctl32: Use the appropriate color format when loading a DIB in ImageList_LoadImageW. 2010-10-14 17:54:51 +02:00
Nikolay Sivov
acbd632039 comctl32/imagelist: Fix return value for IImageList_GetIconSize(). 2010-08-23 13:37:02 +02:00
Nikolay Sivov
9b77425f6a comctl32/imagelist: Fix return value from IImageList_SetBkColor(). 2010-08-23 13:37:02 +02:00
Nikolay Sivov
1c82b3491a comctl32/imagelist: Remove parameter check from IImageList_GetBkColor(). 2010-08-23 13:37:02 +02:00
Nikolay Sivov
6db1d3c5b9 comctl32/imagelist: Fix reference leak in IImageList_Clone(). 2010-08-23 13:37:01 +02:00
Nikolay Sivov
87847aa13c comctl32/imagelist: Remove parameter check from IImageList_Clone(). 2010-08-23 13:37:01 +02:00
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