]> git.saurik.com Git - wxWidgets.git/commitdiff
controls sample is now able to use default command line arguments
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 4 Nov 2001 23:33:09 +0000 (23:33 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 4 Nov 2001 23:33:09 +0000 (23:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index 066ed1b2ccb8e41ecb58d4c5313fa6168b79d237..8ba440d3f961c3df953b336b88284a60e77f2232 100644 (file)
@@ -314,6 +314,10 @@ enum
 
 bool MyApp::OnInit()
 {
 
 bool MyApp::OnInit()
 {
+    // use standard command line handling:
+    if ( !wxApp::OnInit() )
+        return FALSE;
+
     // parse the cmd line
     int x = 50,
         y = 50;
     // parse the cmd line
     int x = 50,
         y = 50;