]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/mfc/mfctest.cpp
call OnInit() from all samples to allow using standard command line options with...
[wxWidgets.git] / samples / mfc / mfctest.cpp
index 7a3f3d34e48a10ba66e7b84250625b7094c1b9ff..d0c92194ab66537d77163e8dbb2dcd7cfc72013c 100644 (file)
@@ -232,6 +232,9 @@ BOOL CTheApp::OnIdle(LONG WXUNUSED(lCount))
 
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
 #if !START_WITH_MFC_WINDOW
     // as we're not inside wxWidgets main loop, the default logic doesn't work
     // in our case and we need to do this explicitly