Append parameters are sometimes useful.
For example:
Wm_seticon
An application sendsWm_seticonMessage to associate 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.
To send this message, callSendmessageFunction with the following parameters.
SendMessage( (HWND) hWnd, // handle to destination window WM_SETICON, // message to send (WPARAM) wParam, // icon type (LPARAM) lParam // handle to icon (HICON));
Parameters
-
Wparam
-
Specifies the type of icon to be 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. |
-
Lparam
-
Handle to the new large or small icon. If this parameter is null, the icon indicated WparamIs removed.
Return values
The return value is a handle to the previous large or small icon, depending on the valueWparam.It is null if the window previusly had no icon of the type indicatedWparam.