Reference

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".

History