STM_SETICON message

An application sends the STM_SETICON message to associate an icon with an icon control.

Parameters

wParam

Handle to the icon to associate with the icon control.

lParam

This parameter is not used.

Return value

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

Requirements

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

STM_GETICON

Other Resources

LoadIcon