]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dynamic/dynamic.cpp
don't build wxscintilla lib if wxSTC is not built
[wxWidgets.git] / samples / dynamic / dynamic.cpp
index aea56b8fbe96fdc8231b30fd9f18305267111d5f..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"
 
@@ -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);