]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dynamic/dynamic.cpp
reSWIGged
[wxWidgets.git] / samples / dynamic / dynamic.cpp
index 365c00eaa7da751ebb4449e52947843b053db08e..e6594a83129dbd8c9d754675898e4dc0ebc4d821 100644 (file)
@@ -9,11 +9,6 @@
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-#pragma implementation
-#pragma interface
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -27,7 +22,7 @@
 
 #include "wx/clntdata.h"
 
-#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXCOCOA__)
+#ifndef __WXMSW__
 #include "mondrian.xpm"
 #endif
 
@@ -71,6 +66,9 @@ IMPLEMENT_APP  (MyApp)
 // `Main program' equivalent, creating windows and returning main app frame
 bool MyApp::OnInit(void)
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // Create the main frame window
     MyFrame *frame = new MyFrame(NULL, _T("Dynamic wxWidgets App"), 50, 50, 450, 340);