]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sashtest/sashtest.cpp
simplify the code for extended flags handling fixing a rare bug with wxSTAY_ON_TOP...
[wxWidgets.git] / samples / sashtest / sashtest.cpp
index fb3accf647ba590158665905b710b3ff626a4c8c..16dd9ff1860f45154cfae81a45099f44c54d7da5 100644 (file)
@@ -40,6 +40,9 @@ int winNumber = 1;
 // Initialise this in OnInit, not statically
 bool MyApp::OnInit(void)
 {
+  if ( !wxApp::OnInit() )
+    return false;
+
   // Create the main frame window
 
   frame = new MyFrame(NULL, wxID_ANY, _T("Sash Demo"), wxPoint(0, 0), wxSize(500, 400),