X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a967ef9dcefdb23a73ab389b5749fe1e17bedc5b..abe5726aff7744e67c81f8dd6a2116dab0ec9a53:/src/msw/mdi.cpp 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; }