An application sends the STM_GETICON message to retrieve the handle of 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 the handle of the icon, or NULL if either the static control has no associated icon or if an error occurred.
See Also