]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/event/event.cpp
reset deferred position/size if the window was moved immediately (#10073)
[wxWidgets.git] / samples / event / event.cpp
index a0647391aee01dcde7ac622b26e1d96d9618a635..2b9c5850fbb3235f66edb5ed238698dc029391ec 100644 (file)
@@ -200,6 +200,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("Event wxWidgets Sample"),
                                  wxPoint(50, 50), wxSize(600, 340));