An application sends an STM_GETIMAGE message to retrieve a handle to the image associated with a static control.
STM_GETIMAGE
wParam = (WPARAM) fImageType; // image-type flag
lParam = 0; // not used; must be zero
IMAGE_BITMAP
IMAGE_CURSOR
IMAGE_ENHMETAFILE
IMAGE_ICON
The return value is a handle to the image, if any; otherwise, it is NULL.
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Static Controls Overview, Static Control Messages, STM_SETIMAGE