]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/shaped/shaped.cpp
corrected name of wxWS_EX_PROCESS_UI_UPDATES style (part of patch 1686335)
[wxWidgets.git] / samples / shaped / shaped.cpp
index ae8675c7cb3ff4f642cbef4301fa803fab5d8793..cc8ed4a232cbf6f941e5ef0174a57d2d5f2810ce 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation
-    #pragma interface
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -130,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