STM_SETICON

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 
 

Parameters

hicon
Value of wParam. Handle to the icon to associate with the icon control.

Return Values

The return value is a handle to the icon previously associated with the icon control, or zero if an error occurs.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.

See Also

Static Controls Overview, Static Control Messages, LoadIcon, STM_GETICON