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

# ImageList\_AddMasked(3w)

## NAME

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

## SYNOPSIS

INT ImageList\_AddMasked\
  (\
   HIMAGELIST *himl*,\
   HBITMAP    *hBitmap*,\
   COLORREF   *clrMask*\
  )

## DESCRIPTION

Adds an image or images to an image list and creates a mask from the specified bitmap using the mask color.

## PARAMS

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

*hBitmap* **\[In\]**  handle to bitmap.

*clrMask* **\[In\]**  mask color.

## RETURNS

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

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

## IMPLEMENTATION

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

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

Debug channel **"imagelist"**.
