From: Václav Slavík Date: Sun, 4 Nov 2001 23:33:09 +0000 (+0000) Subject: controls sample is now able to use default command line arguments X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/41b66be9c9e9e2f67b99b9f890d92dafb7d39382?ds=inline controls sample is now able to use default command line arguments git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 066ed1b2cc..8ba440d3f9 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -314,6 +314,10 @@ enum bool MyApp::OnInit() { + // use standard command line handling: + if ( !wxApp::OnInit() ) + return FALSE; + // parse the cmd line int x = 50, y = 50;