]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpctrl.cpp
fixed some paths in build scripts
[wxWidgets.git] / src / html / helpctrl.cpp
index 8067c8335a02e020d0facd6709b0a895befcee84..9933bbbf554db874c5ec154dd47103b9411ab695 100644 (file)
@@ -10,7 +10,7 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-#pragma implementation
+#pragma implementation "helpctrl.h"
 #endif
 
 // For compilers that support precompilation, includes "wx.h".
@@ -20,7 +20,7 @@
 #pragma hdrstop
 #endif
 
-#if wxUSE_HTML && wxUSE_STREAMS
+#if wxUSE_WXHTML_HELP
 
 #ifndef WX_PRECOMP
     #include "wx/app.h"
@@ -96,6 +96,8 @@ bool wxHtmlHelpController::AddBook(const wxString& book, bool show_wait_msg)
     if (show_wait_msg)
         delete busy;
 #endif
+    if (m_helpFrame) 
+        m_helpFrame->RefreshLists();
     return retval;
 }
 
@@ -195,7 +197,7 @@ bool wxHtmlHelpController::DisplaySection(int sectionNo)
 
 bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint& WXUNUSED(pos))
 {
-#if wxUSE_HELP
+#if wxUSE_TIPWINDOW
     static wxTipWindow* s_tipWindow = NULL;
 
     if (s_tipWindow)
@@ -213,7 +215,8 @@ bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint&
 
         return TRUE;
     }
-#endif
+#endif // wxUSE_TIPWINDOW
+
     return FALSE;
 }
 
@@ -248,4 +251,5 @@ bool wxHtmlHelpController::Quit()
     return TRUE;
 }
 
-#endif
+#endif // wxUSE_WXHTML_HELP
+