]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/combo/combo.cpp
changes wxDirExists() to accept wxString instead of wxChar*, so that it can be used...
[wxWidgets.git] / samples / combo / combo.cpp
index e4cde90f95cca5fde3aaf1a1ae6badc30a44ee06..2d705f1523cc651897f416e6b90696c242e00953 100644 (file)
@@ -154,6 +154,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("wxComboCtrl and wxOwnerDrawnComboBox Sample"));