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:
@@ -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"));
|
||||
|
||||
|
Reference in New Issue
Block a user