comctl32: make modal property sheets modal

Lei Zhang thestig at google.com
Thu Jun 14 20:44:08 CDT 2007


Hi,

This fixed bug 8637.
-------------- next part --------------
From 8a7369e2a700b43273054b2109baaed077efe91c Mon Sep 17 00:00:00 2001
From: Lei Zhang <thestig at google.com>
Date: Thu, 14 Jun 2007 18:41:43 -0700
Subject: [PATCH] comctl32: make modal property sheets modal
---
 dlls/comctl32/propsheet.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 8740f01..04929c5 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -2836,7 +2836,12 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHE
 
   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;
 }
-- 
1.4.1


More information about the wine-patches mailing list