Fixes problem where child window does not appear immediately (until second child is added) in the WINDOWS menu.
OGL Studio sample did not even show the child frame when a new one was created [bug reported by Julian]. This patch supplied by Markus Greither git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -726,14 +726,6 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent,
|
|||||||
|
|
||||||
wxModelessWindows.Append(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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1011,6 +1003,8 @@ bool wxMDIChildFrame::HandleMDIActivate(long WXUNUSED(activate),
|
|||||||
wxActivateEvent event(wxEVT_ACTIVATE, activated, m_windowId);
|
wxActivateEvent event(wxEVT_ACTIVATE, activated, m_windowId);
|
||||||
event.SetEventObject( this );
|
event.SetEventObject( this );
|
||||||
|
|
||||||
|
ResetWindowStyle((void *)NULL);
|
||||||
|
|
||||||
return GetEventHandler()->ProcessEvent(event);
|
return GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user