다음을 통해 공유


WM_SETICON (Windows CE 5.0)

Send Feedback

This message is sent by an application to associate a new big or small icon with a window.

WM_SETICON wParam = (WPARAM)(BOOL)fType;
  lParam = (LPARAM)(HICON)hicon;

Parameters

  • fType
    Specifies the type of icon being set. The following table shows the possible values. This parameter can be one of these values.
    Value Description
    ICON_BIG Sets the large icon for the window.
    ICON_SMALL Sets the small icon for the window.
  • hicon
    Handle to the new large or small icon. If this parameter is NULL, the icon indicated by fType is removed.

Return Values

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

The default action is that the DefWindowProc function returns a handle to the previous 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

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

DefWindowProc | WM_GETICON

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.