X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0a2157c88c9e55130c1afe78b2d1068f7871a68..71e483d39adbc1c80ef2fa998bd7f18e1704440c:/src/msw/mdi.cpp diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 3624c580e9..4eaf3c7779 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -302,7 +302,7 @@ void wxMDIParentFrame::SetWindowMenu(wxMenu* menu) if (GetMenuBar()) { InsertWindowMenu(GetClientWindow(), m_hMenu, - GetHMenuOf(m_windowMenu)); + GetHmenuOf(m_windowMenu)); } } } @@ -695,7 +695,7 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, else mcs.cy = CW_USEDEFAULT; - DWORD msflags = WS_OVERLAPPED | WS_CLIPCHILDREN; + DWORD msflags = WS_OVERLAPPED | WS_CLIPCHILDREN | WS_THICKFRAME; if (style & wxMINIMIZE_BOX) msflags |= WS_MINIMIZEBOX; if (style & wxMAXIMIZE_BOX) @@ -726,14 +726,6 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, 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; } @@ -1011,6 +1003,8 @@ bool wxMDIChildFrame::HandleMDIActivate(long WXUNUSED(activate), wxActivateEvent event(wxEVT_ACTIVATE, activated, m_windowId); event.SetEventObject( this ); + ResetWindowStyle((void *)NULL); + return GetEventHandler()->ProcessEvent(event); }