-// the event tables connect the wxWindows events with the functions (event
-// handlers) which process them. It can be also done at run-time, but for the
-// simple menu events like this the static method is much simpler.
- BEGIN_EVENT_TABLE(MyFrame, wxFrame)
- EVT_MENU(Minimal_Quit, MyFrame::OnQuit)
- EVT_MENU(Minimal_About, MyFrame::OnAbout)
- EVT_MENU(Minimal_Back, MyFrame::OnBack)
- EVT_MENU(Minimal_Forward, MyFrame::OnForward)
- END_EVENT_TABLE()
-
- // Create a new application object: this macro will allow wxWindows to create
- // the application object during program execution (it's better than using a
- // static object for many reasons) and also declares the accessor function
- // wxGetApp() which will return the reference of the right type (i.e. MyApp and
- // not wxApp)
- IMPLEMENT_APP(MyApp)
-
- // ============================================================================
- // implementation
- // ============================================================================
-
- // ----------------------------------------------------------------------------
- // the application class
- // ----------------------------------------------------------------------------
- // `Main program' equivalent: the program execution "starts" here
- bool MyApp::OnInit()
- {
- wxLogDebug("[starting testing app]");
- #if wxUSE_LIBPNG
- wxImage::AddHandler(new wxPNGHandler);
- #endif
- #if wxUSE_LIBJPEG
- wxImage::AddHandler(new wxJPEGHandler);
- #endif
- #if wxUSE_GIF
- wxImage::AddHandler(new wxGIFHandler);
- #endif
+// `Main program' equivalent: the program execution "starts" here
+bool MyApp::OnInit()
+{
+#if wxUSE_SYSTEM_OPTIONS
+ wxSystemOptions::SetOption(wxT("no-maskblt"), 1);
+#endif
+
+ wxInitAllImageHandlers();
+#if wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
+ wxFileSystem::AddHandler(new wxInternetFSHandler);
+#endif
+
+ SetVendorName(wxT("wxWidgets"));
+ SetAppName(wxT("wxHtmlTest"));
+ // the following call to wxConfig::Get will use it to create an object...
+