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

# ImageList\_AddIcon(3w)

## NAME

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

## SYNOPSIS

INT ImageList\_AddIcon\
  (\
   HIMAGELIST *himl*,\
   HICON      *hIcon*\
  )

## DESCRIPTION

Adds an icon to an image list.

## PARAMS

*himl* **\[In\]**  handle to image list.

*hIcon* **\[In\]**  handle to icon.

## RETURNS

**Success:** index of the new image

**Failure:** **-1**

## IMPLEMENTATION

Declared in **"commctrl.h"**.

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

Debug channel **"imagelist"**.
