Does the application GetMessage even during MessageBox?

后端 未结 1 1417
無奈伤痛
無奈伤痛 2020-12-12 06:31

While handling WM_TIMER, I called MessageBox. As a result, a message box popped up with the frequency of the timer. So I believe that the application was tr

相关标签:
1条回答
  • 2020-12-12 06:52

    A modal dialog runs its own message loop internally, using the calling thread's message queue. You are calling MessageBox() inside your WM_TIMER handler, so the message loop inside of MessageBox() is receiving and dispatching subsequent WM_TIMER messages while the message box is running.

    0 讨论(0)
提交回复
热议问题