]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed MDIS_ALLCHILDSTYLES bug (WS_VISIBLE needed to be added to child frame style)
authorJulian Smart <julian@anthemion.co.uk>
Thu, 14 Jun 2001 16:51:29 +0000 (16:51 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 14 Jun 2001 16:51:29 +0000 (16:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/mdi.cpp

index b021145a2783f949906ec32f93dc2b78016971a5..8ab7af988c6a09a829c42bd8afe27b81a5dc47ed 100644 (file)
@@ -695,7 +695,7 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
   else
       mcs.cy = CW_USEDEFAULT;
 
-  DWORD msflags = WS_OVERLAPPED | WS_CLIPCHILDREN | WS_THICKFRAME;
+  DWORD msflags = WS_OVERLAPPED | WS_CLIPCHILDREN | WS_THICKFRAME | WS_VISIBLE ;
   if (style & wxMINIMIZE_BOX)
     msflags |= WS_MINIMIZEBOX;
   if (style & wxMAXIMIZE_BOX)
@@ -1146,12 +1146,7 @@ bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style)
         ccs.hWindowMenu = (HMENU) parent->GetWindowMenu()->GetHMenu();
     ccs.idFirstChild = wxFIRST_MDI_CHILD;
 
-    // Note from JACS: please don't restore MDIS_ALLCHILDSTYLES
-    // without verifying that the OGL Studio sample works. Currently,
-    // it doesn't, with this style. We have to track it down, but
-    // I'd rather Studio (and maybe apps like it) didn't completely
-    // break.
-    DWORD msStyle = /* MDIS_ALLCHILDSTYLES | */ WS_VISIBLE | WS_CHILD |
+    DWORD msStyle = MDIS_ALLCHILDSTYLES | WS_VISIBLE | WS_CHILD |
                     WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
 
     if ( style & wxHSCROLL )