X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/085a1f3cd9bb0dd151024aeb2d09e769e76bb829..b22d16ad20a51052d24d538c22237c97b0ee0b53:/samples/widgets/widgets.cpp?ds=sidebyside diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index 5e9204a919..59ee9950f0 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -192,6 +192,9 @@ END_EVENT_TABLE() bool WidgetsApp::OnInit() { + if ( !wxApp::OnInit() ) + return FALSE; + // the reason for having these ifdef's is that I often run two copies of // this sample side by side and it is useful to see which one is which wxString title;