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
This message has no parameters.
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.
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, STM_SETICON