STM_GETICON

An application sends the STM_GETICON message to retrieve a handle to the icon associated with a static control that has the SS_ICON style.

STM_GETICON 
wParam = 0; // not used; must be zero 
lParam = 0; // not used; must be zero 
 

Parameters

This message has no parameters.

Return Values

The return value is a handle to the icon, or NULL if either the static control has no associated icon or if an error occurred.

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, STM_SETICON