comctl32: Make modal property sheets modal.
authorLei Zhang <thestig@google.com>
Fri, 15 Jun 2007 01:41:43 +0000 (18:41 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 15 Jun 2007 11:24:13 +0000 (13:24 +0200)
dlls/comctl32/propsheet.c

index 8740f01..04929c5 100644 (file)
@@ -2836,7 +2836,12 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
 
   bRet = PROPSHEET_CreateDialog(psInfo);
   if(!psInfo->isModeless)
+  {
+      HWND parent = GetParent(psInfo->hwnd);
+      if (parent) EnableWindow(parent, FALSE);
       bRet = do_loop(psInfo);
+      if (parent) EnableWindow(parent, TRUE);
+  }
 
   return bRet;
 }