git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39891
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
+ // call the base class initialization method, currently it only parses a
+ // few common command-line options but it could be do more in the future
+ if ( !wxApp::OnInit() )
+ return false;
+
// create the main application window
MyFrame *frame = new MyFrame(_T("Minimal wxWidgets App"));
// create the main application window
MyFrame *frame = new MyFrame(_T("Minimal wxWidgets App"));