]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/caret/caret.cpp
implement wxTreeCtrl::GetFocusedItem() for wxMSW too (see #10859)
[wxWidgets.git] / samples / caret / caret.cpp
index 4f811d48385c4969c0078e4b552fc15fe3f3b2e6..a519db7faad9b39505b475d37406965714d67f4a 100644 (file)
@@ -182,6 +182,9 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // create and show the main application window
     MyFrame *frame = new MyFrame(_T("Caret wxWidgets sample"),
                                  wxPoint(50, 50), wxSize(450, 340));