From 5c44cd0518b348ebab6ab67f0117c3ff01374052 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 14 Jun 2001 16:51:29 +0000 Subject: [PATCH] Fixed MDIS_ALLCHILDSTYLES bug (WS_VISIBLE needed to be added to child frame style) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/mdi.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index b021145a27..8ab7af988c 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -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 ) -- 2.47.2