浏览代码

make it a modal dialog

Bill Hoffman 24 年之前
父节点
当前提交
c213a8bcd8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/MFCDialog/CMakeSetupDialog.cpp

+ 1 - 1
Source/MFCDialog/CMakeSetupDialog.cpp

@@ -67,7 +67,7 @@ void MFCMessageCallback(const char* m, const char* title, bool& nomore)
   std::string message = m;
   message += "\n\n(Press  Cancel to suppress any further messages.)";
   if(::MessageBox(0, message.c_str(), title, 
-                  MB_OKCANCEL) == IDCANCEL)
+                  MB_OKCANCEL|MB_TASKMODAL) == IDCANCEL)
     {
     nomore = true;
     }