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