]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ipc/server.cpp
call OnInit() from all samples to allow using standard command line options with...
[wxWidgets.git] / samples / ipc / server.cpp
index 9680d222f8c621933687686455cea3cf13e0007c..a4f01ac0a55fd7fa64b1def359e510ba89e346c1 100644 (file)
@@ -66,6 +66,9 @@ END_EVENT_TABLE()
 
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // Create the main frame window
     m_frame = new MyFrame(NULL, _T("Server"));
     m_frame->Show(true);