]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/shaped/shaped.cpp
call OnInit() from all samples to allow using standard command line options with...
[wxWidgets.git] / samples / shaped / shaped.cpp
index ea00e88566dac5ae52f8a5efb03fb80599ed0165..cc8ed4a232cbf6f941e5ef0174a57d2d5f2810ce 100644 (file)
@@ -125,6 +125,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     wxInitAllImageHandlers();
 
     // Create the main application window