BM_GETIMAGE message

Retrieves a handle to the image (icon or bitmap) associated with the button.

Parameters

wParam

The type of image to associate with the button. This parameter can be one of the following values.

Value Meaning
IMAGE_BITMAP
A bitmap.
IMAGE_ICON
An 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

Reference

BM_SETIMAGE

Conceptual

Buttons