Windows window and messages

Source: Internet
Author: User

In the Windows desktop program, the main concept is the window, it is all the visible objects on the screen (such as various windows, child windows, control windows, etc.) collectively.

The user interacts with the window with the help of a keyboard or mouse. The user's input to the window is passed to the window as a message, and the window communicates with other windows with the help of the message.


There are three stakeholders involved in Windows message operation: <1> user input (via keyboard or mouse) <2> manipulated Windows <3> operating system

First, when the user enters the window (such as changing the size of the window, moving the window, etc.), the operating system captures the user's input information and encapsulates the message into the message queue of the application. The message processing function of the window then processes the messages in the application message queue. This is the process of Windows message operation.

In fact, when the user enters the window, the operating system captures the input information and uses the information as a parameter to invoke the window's message handler function. In the message processing function, the various responses to the message are processed.



Windows window and messages

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.