我有一个当前有消息循环的应用程序。如果我要使用 DialogBox
方法创建一个模式对话框,当前消息循环是否也会从对话框接收消息,或者它们是否会被运行时保留?
最佳答案
DialogBox创建自己的消息循环,这样你的消息循环就不会运行。来自文档:
The function displays the dialog box (regardless of whether the template specifies the WS_VISIBLE style), disables the owner window, and starts its own message loop to retrieve and dispatch messages for the dialog box.
关于c++ - DialogBox 消息是否发送到自定义消息循环?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10926435/