#if wxUSE_HELP
#include "wx/tipwin.h"
#endif
+
+
+#if wxUSE_LIBMSPACK
+#include "wx/html/forcelnk.h"
+FORCE_LINK(wxhtml_chm_support)
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxHtmlHelpController, wxHelpControllerBase)
#if wxUSE_BUSYINFO
if (show_wait_msg)
delete busy;
+#else
+ wxUnusedVar(show_wait_msg);
#endif
if (m_helpFrame)
m_helpFrame->RefreshLists();
m_helpFrame->Create(NULL, wxID_HTML_HELPFRAME, wxEmptyString, m_FrameStyle);
m_helpFrame->SetTitleFormat(m_titleFormat);
+
m_helpFrame->Show(TRUE);
}
{
actualFilename = dir + filename + wxString(wxT(".hhp"));
if (!wxFileExists(actualFilename))
- return FALSE;
+ {
+#if wxUSE_LIBMSPACK
+ actualFilename = dir + filename + wxString(wxT(".chm"));
+ if (!wxFileExists(actualFilename))
+#endif
+ return false;
+ }
}
}
-
return AddBook(wxFileName(actualFilename));
}