Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message is sent to a window to retrieve the handle of the big or small icon associated with a window.

Syntax

WM_GETICON 

fType = (BOOL)
wParam;

Parameters

fType

Specifies the type of icon being retrieved. The following table shows the possible values. This parameter can be one of these values.

Value Description

ICON_BIG

Retrieves the large icon for the window.

ICON_SMALL

Retrieves the small icon for the window.

Return Value

The return value is a handle to the large or small icon, depending on the value of fType.When an application receives this message, it can return a handle to a large or small icon, or pass the message to DefWindowProc.

The default action is that DefWindowProcreturns a handle to the large or small icon associated with the window, depending on the value of fType.

Remarks

Icons are stored per window class, not per window.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also