STM_GETICON

3.1

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.

Parameters

This message has no parameters.

Return Value

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.

Example

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);

See Also

STM_SETICON