]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/minimal/minimal.cpp
Map illegal UTF-8 sequences to a range in Unicode's private use area as
[wxWidgets.git] / samples / minimal / minimal.cpp
index b9403d34695d9fc09ab4c6d24f33b7c800eca823..09ed8305c2d58b901ff2939b6f5e47992930ece1 100644 (file)
 // ----------------------------------------------------------------------------
 // headers
 // ----------------------------------------------------------------------------
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
-
 #ifdef __BORLANDC__
     #pragma hdrstop
 #endif
@@ -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"));