call wxApp::OnInit() from MyApp::OnInit() so that standard options (like wxUniv --theme) work with the sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-06-29 13:47:45 +00:00
parent 65f0638484
commit 0910467e7c

View File

@@ -119,6 +119,11 @@ IMPLEMENT_APP(MyApp)
// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
// call the base class initialization method, currently it only parses a
// few common command-line options but it could be do more in the future
if ( !wxApp::OnInit() )
return false;
// create the main application window
MyFrame *frame = new MyFrame(_T("Minimal wxWidgets App"));