]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/virtual/virtual.cpp
Removed dummy wxFont == operator implementation (IIRC was needed to compile with...
[wxWidgets.git] / samples / html / virtual / virtual.cpp
index 75d9193dfbb2dd438b52f91570051b919c2b32f5..27c1b8a57a8b52fc5a2fd8633fec0c794a22b26b 100644 (file)
@@ -4,11 +4,6 @@
 //              demonstrates virtual file systems feature
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation "test.cpp"
-    #pragma interface "test.cpp"
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -126,7 +121,7 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
    Minimal_Forward,
    
     // controls start here (the numbers are, of course, arbitrary)
-   Minimal_Text = 1000,
+   Minimal_Text = 1000
    };
 
 // ----------------------------------------------------------------------------
@@ -160,6 +155,9 @@ wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
    // `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(_("wxHtmlWindow testing application"),
          wxDefaultPosition, wxSize(640, 480));
@@ -202,11 +200,15 @@ wxHtmlWindow *html;
     // ... and attach this menu bar to the frame
       SetMenuBar(menuBar);
    
+#if wxUSE_STATUSBAR
       CreateStatusBar(2);
+#endif // wxUSE_STATUSBAR
 
       html = new wxHtmlWindow(this);
       html -> SetRelatedFrame(this, _("VFS Demo: '%s'"));
+#if wxUSE_STATUSBAR
       html -> SetRelatedStatusBar(1);
+#endif // wxUSE_STATUSBAR
       html -> LoadPage(wxT("start.htm"));
    }