]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/help/help.cpp
Fix wxHtmlHelpData::SetTempDir() to behave correctly without trailing slash.
[wxWidgets.git] / samples / html / help / help.cpp
index c1c2954466af4cc15d4ab5ff29fef11fb399e610..24f8d1d924c412dbd5687ad6685bd6515565831d 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      ?
 // Modified by:
 // Created:     ?
-// RCS-ID:      $Id$
 // Copyright:   (c) wxWidgets team
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -28,7 +27,7 @@
 #include "wx/filesys.h"
 #include "wx/fs_zip.h"
 
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../../sample.xpm"
 #endif
 
@@ -127,11 +126,8 @@ bool MyApp::OnInit()
     MyFrame *frame = new MyFrame(_("HTML Help Sample"),
         wxDefaultPosition, wxDefaultSize);
 
-    // Show it and tell the application that it's our main window
-    // @@@ what does it do exactly, in fact? is it necessary here?
+    // Show it
     frame->Show(true);
-    SetTopWindow(frame);
-
 
     // success: wxApp::OnRun() will be called which will enter the main message
     // loop and the application will run. If we returned false here, the