X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e86d7842e663a04664f91b66803a90cb069e8e5..17b1d76b4add82305463d10b9f65668d06169363:/samples/minimal/minimal.cpp diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index b9403d3469..3bfad6019d 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -119,6 +119,11 @@ IMPLEMENT_APP(MyApp) // '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"));