From: George Tasker Date: Thu, 5 Apr 2001 12:15:14 +0000 (+0000) Subject: Fixes problem where maximized child windows still have a double border drawn around... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/921a43c1f69f8763a4b2516586392d4c03f0feaf?ds=inline Fixes problem where maximized child windows still have a double border drawn around them git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 8a43fa947c..e3db308a0f 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -722,6 +722,15 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, //SetWindowLong(GetHwnd(), 0, (long)this); wxModelessWindows.Append(this); + + // Necessary to make ResetWindowStyle() work + // and will be called eventually anyway + Activate(); + + // Without this, a maximized child will still + // a double border around the child + ResetWindowStyle((void *)NULL); // Set the Client ExStyle right + return TRUE; }