#include "wx/wx.h"
#endif
-#ifndef __WXMSW__
+#if !defined(__WXMSW__) && !defined(__WXPM__)
#include "mondrian.xpm"
#endif
#endif // wxUSE_LOG
void OnBrowser(wxCommandEvent& event);
void OnPlugProvider(wxCommandEvent& event);
-
+
DECLARE_EVENT_TABLE()
};
// '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));
wxMenu *helpMenu = new wxMenu;
helpMenu->Append(wxID_ABOUT, _T("&About...\tF1"), _T("Show about dialog"));
- menuFile->AppendCheckItem(ID_PlugProvider, _T("&Plug-in art provider"), _T("Enable custom art provider"));
+ menuFile->AppendCheckItem(ID_PlugProvider, _T("&Plug-in art provider"), _T("Enable custom art provider"));
menuFile->AppendSeparator();
#if wxUSE_LOG
void MyFrame::OnPlugProvider(wxCommandEvent& event)
{
if ( event.IsChecked() )
- wxArtProvider::PushProvider(new MyArtProvider);
+ wxArtProvider::Push(new MyArtProvider);
else
- wxArtProvider::PopProvider();
+ wxArtProvider::Pop();
}