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;