]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dnd/dnd.cpp
call OnInit() from all samples to allow using standard command line options with...
[wxWidgets.git] / samples / dnd / dnd.cpp
index 10822d957c276d868279905698f5a61a9798fd2f..beef9c121b8bcf0c752aa6d9cda9eb03111dff0a 100644 (file)
@@ -883,6 +883,9 @@ END_EVENT_TABLE()
 // `Main program' equivalent, creating windows and returning main app frame
 bool DnDApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
 #if wxUSE_DRAG_AND_DROP || wxUSE_CLIPBOARD
     // switch on trace messages
 #if wxUSE_LOG