]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/htmlctrl/htmlctrl.cpp
call OnInit() from all samples to allow using standard command line options with...
[wxWidgets.git] / samples / html / htmlctrl / htmlctrl.cpp
index 11d195c1433c13824e852eb23324f9ce65f97e8f..c003f9cb197e73389082ace63f8f33b4d36ffdc7 100755 (executable)
@@ -125,6 +125,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("wxWebKit Sample"));