STM_GETIMAGE message

An application sends an STM_GETIMAGE message to retrieve a handle to the image (icon or bitmap) associated with a static control.

Parameters

wParam

Specifies the type of image to retrieve. This parameter can be one of the following values:

Value Meaning
IMAGE_BITMAP
Bitmap.
IMAGE_CURSOR
Cursor.
IMAGE_ENHMETAFILE
Enhanced metafile.
IMAGE_ICON
Icon.

lParam

This parameter is not used.

Return value

The return value is a handle to the image, if any; otherwise, it is NULL.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

STM_SETIMAGE