mainsizer->Add( middlesizer, 1, wxEXPAND );
- SetAutoLayout( true );
SetSizer( mainsizer );
}
topsizer->Add( m_log, 0, wxEXPAND );
#endif // wxUSE_LOG
- SetAutoLayout( true );
SetSizer( topsizer );
}
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
wxFrame *frame = new MyFrame();
frame->Show( true );