// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
// create the main application window
MyFrame *frame = new MyFrame(_T("wxArtProvider sample"),
wxPoint(50, 50), wxSize(450, 340));
void MyFrame::OnPlugProvider(wxCommandEvent& event)
{
if ( event.IsChecked() )
- wxArtProvider::PushProvider(new MyArtProvider);
+ wxArtProvider::Push(new MyArtProvider);
else
- wxArtProvider::PopProvider();
+ wxArtProvider::Pop();
}