|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| -
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
WM_SETICON
An application sends the WM_SETICON message to associate a new large or small
icon with a window. Windows draws the large icon when the window is minimized,
and the small icon in the window's title bar.
WM_SETICON
wParam = (WPARAM) fType; // icon type
lParam = (LPARAM) (HICON) hicon; // handle of icon
Parameters
fType
Value of wParam. Specifies the type of icon being set. This parameter can be one of the
following values:
Value
| Meaning
| ICON_BIG
| Set the large icon for the window.
| ICON_SMALL
| Set the small icon for the window.
| hicon
Value of lParam. Identifies the new large or small icon. If this parameter is NULL, the icon
indicated by fType is removed.
Return Values
The return value is the handle of the previous large or small icon, depending
on the value of fType. It is NULL if the window previously had no icon of the type indicated by fType.
Default Action
The DefWindowProc function returns the handle of the previous large or small icon associated
with the window, depending on the value of fType.
See Also
DefWindowProc, WM_GETICON
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|