Przeglądaj źródła

make it a modal dialog

Bill Hoffman 24 lat temu
rodzic
commit
c213a8bcd8
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
   std::string message = m;
   message += "\n\n(Press  Cancel to suppress any further messages.)";
   message += "\n\n(Press  Cancel to suppress any further messages.)";
   if(::MessageBox(0, message.c_str(), title, 
   if(::MessageBox(0, message.c_str(), title, 
-                  MB_OKCANCEL) == IDCANCEL)
+                  MB_OKCANCEL|MB_TASKMODAL) == IDCANCEL)
     {
     {
     nomore = true;
     nomore = true;
     }
     }