Lei Zhang : comctl32: Make modal property sheets modal.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 15 07:23:10 CDT 2007


Module: wine
Branch: master
Commit: ebb460c3c0c227392699fd1b0809f6f35ea52847
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ebb460c3c0c227392699fd1b0809f6f35ea52847

Author: Lei Zhang <thestig at google.com>
Date:   Thu Jun 14 18:41:43 2007 -0700

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(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;
 }




More information about the wine-cvs mailing list