An application sends an STM_SETIMAGE message to associate a new image (icon or bitmap) with a static control.
STM_SETIMAGE wParam = (WPARAM) fImageType; // image-type flag lParam = (LPARAM) (HANDLE) hImage; // handle of the image
IMAGE_BITMAP
IMAGE_CURSOR
IMAGE_ENHMETAFILE
IMAGE_ICON
The return value is the handle of the image previously associated with the static control, if any; otherwise, it is NULL.