- // Create the main application window
- MyFrame *frame = new MyFrame("Minimal wxWindows App",
- wxPoint(50, 50), wxSize(450, 340));
+ // 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("Minimal wxWidgets App");