Propsheet pages need WS_EX_CONTROLPARENT style

Zach Gorman zach at archetypeauction.com
Sat Aug 14 19:19:30 CDT 2004


Propsheet pages need the WS_EX_CONTROLPARENT extended style set. 
Otherwise, WM_NEXTDLGCTL does not work properly when crossing from 
the property sheet into the property page. Also, this is required 
(along with a forthcoming patch) for default button handling in
property pages to work as expected.

===================================================================
RCS file: /home/wine/wine/dlls/comctl32/propsheet.c,v
retrieving revision 1.105
diff -u -r1.105 propsheet.c
--- propsheet.c 9 Aug 2004 22:54:14 -0000       1.105
+++ propsheet.c 15 Aug 2004 00:13:29 -0000
@@ -1474,6 +1474,8 @@
     ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_DISABLED;
     ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_VISIBLE;
     ((MyDLGTEMPLATEEX*)pTemplate)->style &= ~WS_THICKFRAME;
+
+    ((MyDLGTEMPLATEEX*)pTemplate)->exStyle |= WS_EX_CONTROLPARENT;
   }
   else
   {
@@ -1485,6 +1487,8 @@
     pTemplate->style &= ~WS_DISABLED;
     pTemplate->style &= ~WS_VISIBLE;
     pTemplate->style &= ~WS_THICKFRAME;
+
+    pTemplate->dwExtendedStyle |= WS_EX_CONTROLPARENT;
   }
  
   if (psInfo->proppage[index].useCallback)




More information about the wine-patches mailing list