【发布时间】:2011-09-22 04:35:06
【问题描述】:
假设如果我使用CreateThread 创建一个线程,并且我希望该线程中有一个模态或非模态对话框。我需要像这里一样使用单独的消息循环吗,
while(GetMessage(&msg, 0, 0, 0)) // Get any window messages
{
TranslateMessage(&msg); // Translate the message
DispatchMessage(&msg); // Dispatch the message
}
但是对于模态对话框,你不使用它,那为什么我创建对话框时它不能工作?
【问题讨论】:
标签: c++ multithreading winapi dialog