From 0910467e7c2e05791e86d6bb6f14deb1c837a8b1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 29 Jun 2006 13:47:45 +0000 Subject: [PATCH] call wxApp::OnInit() from MyApp::OnInit() so that standard options (like wxUniv --theme) work with the sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/minimal/minimal.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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")); -- 2.50.0