Windows custom message ID

Source: Internet
Author: User
Wm_user to 0x7fff are reserved for private window classes. You can think of this range as meaningful private messages in a specific form class. Applications that want to define their own messages ProgramWm_app should be used.

Wm_app ensures that it does not conflict with system (wm_create, etc.) or class/specific control messages such as dm_getdefid

Message ranges in Windows

0-(WM_USER-1)Reserved messages used by the system, such as wm_create and wm_scroll.

Wm_user-0x7fffInteger messages used by the private window class, such as dm_getdefid (dialog box), tb_enablebutton (toolbar), and pbm_setrange (progress bar ).

Wm_app-0 xbfffThe message used by the application.

0xc000-0 xFFFFThe string message used by the application (registerwindowmessage).> 0 xFFFF windows is retained for future use.

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.