Implement ImageList_SetColorTable

Robert Shearman rob at codeweavers.com
Fri Oct 15 08:26:24 CDT 2004


I'll get the documented function out of the way.

Changelog:
Implement ImageList_SetColorTable.
-------------- next part --------------
Index: wine/dlls/comctl32/comctl32.spec
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/comctl32.spec,v
retrieving revision 1.44
diff -u -p -r1.44 comctl32.spec
--- wine/dlls/comctl32/comctl32.spec	17 May 2004 20:51:27 -0000	1.44
+++ wine/dlls/comctl32/comctl32.spec	15 Oct 2004 13:15:44 -0000
@@ -95,7 +95,7 @@
 387 stdcall -noname DSA_EnumCallback(ptr ptr long)
 388 stdcall -noname DSA_DestroyCallback(ptr ptr long)
 389 stub -noname SHGetProcessDword
-390 stub -noname ImageList_SetColorTable
+390 stdcall -noname ImageList_SetColorTable(ptr long long ptr)
 400 stdcall -noname CreateMRUListW(ptr)
 401 stdcall -noname AddMRUStringW(long wstr)
 402 stdcall -noname FindMRUStringW(long wstr ptr)
Index: wine/dlls/comctl32/imagelist.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/imagelist.c,v
retrieving revision 1.91
diff -u -p -r1.91 imagelist.c
--- wine/dlls/comctl32/imagelist.c	7 Oct 2004 17:34:56 -0000	1.91
+++ wine/dlls/comctl32/imagelist.c	15 Oct 2004 13:15:45 -0000
@@ -2856,3 +2856,28 @@ static HBITMAP ImageList_CreateImage(HDC
     TRACE("returning %p\n", hbmNewBitmap);
     return hbmNewBitmap;
 }
+
+/*************************************************************************
+ * ImageList_SetColorTable [COMCTL32.@]
+ *
+ * Sets the color table of an image list.
+ *
+ * PARAMS
+ *     himl        [I] Handle to the image list.
+ *     uStartIndex [I] The first index to set.
+ *     cEntries    [I] Number of entries to set.
+ *     prgb        [I] New color information for color table for the image list.
+ *
+ * RETURNS
+ *     Success: Number of entries in the table that were set.
+ *     Failure: Zero.
+ *
+ * SEE
+ *     ImageList_Create(), SetDIBColorTable()
+ */
+
+UINT WINAPI
+ImageList_SetColorTable (HIMAGELIST himl, UINT uStartIndex, UINT cEntries, CONST RGBQUAD * prgb)
+{
+    return SetDIBColorTable(himl->hdcImage, uStartIndex, cEntries, prgb);
+}


More information about the wine-patches mailing list