Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

WM_SETICON message

Associates a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption.


#define WM_SETICON                      0x0080

Parameters

wParam

The type of icon to be set. This parameter can be one of the following values.

ValueMeaning
ICON_BIG
1

Set the large icon for the window.

ICON_SMALL
0

Set the small icon for the window.

 

lParam

A handle to the new large or small icon. If this parameter is NULL, the icon indicated by wParamis removed.

Return value

Type: LRESULT

The return value is a handle to the previous large or small icon, depending on the value of wParam. It is NULL if the window previously had no icon of the type indicated by wParam.

Remarks

The DefWindowProc function returns a handle to the previous large or small icon associated with the window, depending on the value of wParam.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
DefWindowProc
WM_GETICON
Conceptual
Windows

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.