X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8520f1374ceec64abae3802984c4f8654d8836ba..44c87b7d15d5c1f5926beffa4cd5c9d1d2045e04:/samples/config/conftest.cpp?ds=sidebyside diff --git a/samples/config/conftest.cpp b/samples/config/conftest.cpp index ba142b25b8..aea01ea493 100644 --- a/samples/config/conftest.cpp +++ b/samples/config/conftest.cpp @@ -85,6 +85,9 @@ IMPLEMENT_APP(MyApp) // `Main program' equivalent, creating windows and returning main app frame bool MyApp::OnInit() { + if ( !wxApp::OnInit() ) + return false; + // we're using wxConfig's "create-on-demand" feature: it will create the // config object when it's used for the first time. It has a number of // advantages compared with explicitly creating our wxConfig: @@ -216,7 +219,7 @@ void MyFrame::OnQuit(wxCommandEvent&) void MyFrame::OnAbout(wxCommandEvent&) { - wxMessageBox(_T("wxConfig demo\n© 1998-2001 Vadim Zeitlin"), _T("About"), + wxMessageBox(_T("wxConfig demo\n(c) 1998-2001 Vadim Zeitlin"), _T("About"), wxICON_INFORMATION | wxOK); }