#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()
#endif // wxUSE_GENERIC_MDI_AS_NATIVE
-#endif // wxUSE_MDI
\ No newline at end of file
+#endif // wxUSE_MDI
+