How does the message queue work in Win32?

后端 未结 3 1788
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 21:49

I read some stuff on Win32 and how the message loop works, and there\'s something that is still unclear to me: What exactly is stored in the message queue? The integer value

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-02 22:36

    MSDN has a nice article here explaining everything on messages and message queues.

    But to answer your question, the Queue exists for each window, it temporarily stores the messages and their associate parameters, whether of not its a queue of MSG's is implementation defined, but it most likely is (or something similar). It should also be noted that not all messages will go to the queue, some require immediate processing.

提交回复
热议问题