]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/oleauto/oleauto.cpp
correct properties were not set during initial add somehow
[wxWidgets.git] / samples / oleauto / oleauto.cpp
index bc77c7e8d748d31646674a218acb17c566165750..b360751bdbd2fd672c866373550d609ba6e7908f 100644 (file)
@@ -91,7 +91,7 @@ enum
     OleAuto_Test,
 
     // controls start here (the numbers are, of course, arbitrary)
-    OleAuto_Text = 1000,
+    OleAuto_Text = 1000
 };
 
 // ----------------------------------------------------------------------------
@@ -125,6 +125,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // Create the main application window
     MyFrame *frame = new MyFrame(_T("OleAuto wxWidgets App"),
                                  wxPoint(50, 50), wxSize(450, 340));