Fixed wxMDIChildWindow to be a native window on Mac. Otherwise, functions like SetSize would crash.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2004-06-28 18:18:54 +00:00
parent 547841f751
commit 84be293d47

View File

@ -368,14 +368,8 @@ wxMDIClientWindow::~wxMDIClientWindow()
bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style)
{
m_windowId = (int)NewControlId();
if ( parent )
{
parent->AddChild(this);
}
m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE);
if ( !wxWindow::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style))
return FALSE;
wxModelessWindows.Append(this);
return TRUE;