]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/access/accesstest.cpp
make File->Exit work
[wxWidgets.git] / samples / access / accesstest.cpp
index 4daa8672acefedf54bab513f70af629d26107172..3b0938b983538147cf6e11fbbbb9538de7c44d1d 100644 (file)
@@ -163,6 +163,9 @@ IMPLEMENT_APP(MyApp)
 // 'Main program' equivalent: the program execution "starts" here
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
 #if wxUSE_ACCESSIBILITY
     // Note: JAWS for Windows will only speak the context-sensitive
     // help if you use this help provider: