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

# DrawIconEx(3w)

## NAME

**DrawIconEx** (USER32.@)

## SYNOPSIS

BOOL DrawIconEx\
  (\
   HDC    *hdc*,\
   INT    *x0*,\
   INT    *y0*,\
   HICON  *hIcon*,\
   INT    *cxWidth*,\
   INT    *cyWidth*,\
   UINT   *istep*,\
   HBRUSH *hbr*,\
   UINT   *flags*\
  )

## DESCRIPTION

DrawIconEx (**USER32**.@) Draws an icon or cursor on device context.

## NOTES

Why is this using **SM\_CXICON** instead of **SM\_CXCURSOR**?.

## PARAMS

*hdc* **\[In\]**  Handle to device context.

*x0* **\[In\]**  X coordinate of upper left corner.

*y0* **\[In\]**  Y coordinate of upper left corner.

*hIcon* **\[In\]**  Handle to icon to draw.

*cxWidth* **\[In\]**  Width of icon.

*cyWidth* **\[In\]**  Height of icon.

*istep* **\[In\]**  Index of frame in animated cursor.

*hbr* **\[In\]**  Handle to background brush.

*flags* **\[In\]**  Icon-drawing *flags*.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"winuser.h"**.

Implemented in **"dlls/user32/cursoricon.c"**.

Debug channel **"cursor"**.
