git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28053
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style)
{
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;
wxModelessWindows.Append(this);
return TRUE;