嗨,我正在创建Windows上下文菜单的模拟。显示对话框执行以下操作:使用CreateDialogIndirectParam创建一个对话框运行消息循环:while(ContinueModal()&&GetMessage(&msg,NULL,0,0)){TranslateMessage(&msg);DispatchMessage(&msg);}我在对话框中寻找新窗口的失去焦点事件,我将ContinueModel标志设置为false并调用EndDialog/DestroyWindow.调用EndDialog不会终止我的对话框,DestroyWindow会。这样可以吗,谁能解释为什么?谢谢!