An application sends the STM_SETICON message to associate an icon with an icon control.
STM_SETICON
wParam = (WPARAM) (HICON) hicon; // handle to the icon
lParam = 0; // not used; must be zero
The return value is a handle to the icon previously associated with the icon control, or zero if an error occurs.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Static Controls Overview, Static Control Messages, LoadIcon, STM_GETICON