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

# ImageList\_Add(3w)

## NAME

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

## SYNOPSIS

INT ImageList\_Add\
  (\
   HIMAGELIST *himl*,\
   HBITMAP    *hbmImage*,\
   HBITMAP    *hbmMask*\
  )

## DESCRIPTION

Add an image or images to an image list.

## PARAMS

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

*hbmImage* **\[In\]**  handle to image bitmap.

*hbmMask* **\[In\]**  handle to mask bitmap.

## RETURNS

**Success:** Index of the first new image.

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

## IMPLEMENTATION

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

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

Debug channel **"imagelist"**.
