STM_GETICON
wParam = 0; /* not used, must be zero */
lParam = 0L; /* not used, must be zero */
An application sends an STM_GETICON message to retrieve the handle of the icon associated with an icon resource.
This message has no parameters.
The return value is the icon handle if the operation is successful, or it is zero if the icon has no associated icon resource or if an error occurred.
This example gets the handle of the icon associated with an icon resource:
HICON hIcon;
hIcon = (HICON) SendDlgItemMessage(hdlg, IDD_ICON,
STM_GETICON, 0, 0L);