Remember to check the message msdn when sending the message.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.