Wm_user Wm_app Difference

Source: Internet
Author: User


Wm_user Help application to define private private message in window class , usually using wm_user+ 0x7fff

Wm_appa constant is a Windows help application that defines a private message, typically using an integer value of wm_app+ , But the total value cannot exceed 0xBFFF .

a rule that is customary.
Wm_user through 0x7FFF: used only within its own predefined window;
Wm_app through 0xBFFF: can be used elsewhere in the application.

if all the windows of the program and all the controls are implemented entirely by you, you can totally not abide by this rule.
But if someone else writes code or loads a foreign control, if you do not follow this rule, the probability of a conflict will increase significantly and unexpected results may occur.


Wm_app for inter-process

Wm_user for this process

This article is from the "whatever957" blog, make sure to keep this source http://whatever957.blog.51cto.com/6835003/1621854

Wm_user Wm_app Difference

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.