Revision of Windows Message Drive

xiaoxiao2021-03-06  113

Today reviewed, Windows's message driver. In order to prevent forgetting. Record your experience as follows:

1.Windows message is divided into system messages and user-defined messages

2.Windows use the process to process the message

3. The message can be divided into

Queued Messages and

NonQueued Messages

4.

Queued Messages first placed the message in the queue, then call it, you can use DispatchMessage to send the message to the Window processing process. (Use PostMessage, PostthReadMessage Send Message)

5.

NonQueued Messages Directly send messages to the Window processing process. (Using sendMessage)

6. Generally, when moving the mouse or keyboard, etc.

Queued Messages

7. In the thread, use waitmessage to wait for the message to enter

转载请注明原文地址:https://www.9cbs.com/read-102523.html

New Post(0)