diff --git a/dlls/comctl32/comctl32.spec b/dlls/comctl32/comctl32.spec index 58278361db4..41a36ced27d 100644 --- a/dlls/comctl32/comctl32.spec +++ b/dlls/comctl32/comctl32.spec @@ -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) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index 0f0fce67c9e..6eb2a99ab9b 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -2856,3 +2856,28 @@ static HBITMAP ImageList_CreateImage(HDC hdc, HIMAGELIST himl, UINT width, UINT 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); +}