]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/widgets.cpp
do *NOT* make the window of the size of its parent initially, fixes missing EVT_SIZE...
[wxWidgets.git] / samples / widgets / widgets.cpp
index 5e9204a919e9963daa980f31cc017936d8457ae7..59ee9950f08af02830dfc70069a3820a38825cf9 100644 (file)
@@ -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;