---
name: "ImageList_SetColorTable"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ImageList_SetColorTable"
---

# ImageList\_SetColorTable(3w)

## NAME

**ImageList\_SetColorTable** (COMCTL32.@)

## SYNOPSIS

UINT ImageList\_SetColorTable\
  (\
   HIMAGELIST     *himl*,\
   UINT           *uStartIndex*,\
   UINT           *cEntries*,\
   CONST RGBQUAD\* *prgb*\
  )

## DESCRIPTION

Sets the color table of an image list.

## PARAMS

*himl* **\[In\]**  Handle to the image list.

*uStartIndex* **\[In\]**  The first index to set.

*cEntries* **\[In\]**  Number of entries to set.

*prgb* **\[In\]**  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(3w)](/SetDIBColorTable/3w.md)**

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

Implemented in **"dlls/comctl32/imagelist.c"**.

Debug channel **"imagelist"**.
