#pragma hdrstop
#endif
+#if wxUSE_MDI
+
#include "wx/generic/mdig.h"
#ifndef WX_PRECOMP
#endif // wxUSE_MENUS
}
- wxFrame::Create( parent, id, title, pos, size, style, name );
+ if ( !wxFrame::Create( parent, id, title, pos, size, style, name ) )
+ return false;
- OnCreateClient();
+ m_pClientWindow = OnCreateClient();
- return true;
+ return m_pClientWindow != NULL;
}
#if wxUSE_MENUS
wxGenericMDIClientWindow *wxGenericMDIParentFrame::OnCreateClient()
{
#if wxUSE_GENERIC_MDI_AS_NATIVE
- m_pClientWindow = new wxMDIClientWindow( this );
+ return new wxMDIClientWindow( this );
#else
- m_pClientWindow = new wxGenericMDIClientWindow( this );
+ return new wxGenericMDIClientWindow( this );
#endif
- return m_pClientWindow;
}
void wxGenericMDIParentFrame::ActivateNext()
IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxGenericMDIChildFrame)
IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxGenericMDIClientWindow)
-#endif
+#endif // wxUSE_GENERIC_MDI_AS_NATIVE
+
+#endif // wxUSE_MDI
+